goertzenator/paramiko — Issue #1: forward.py chokes when reading hostkeys
Author: rfehren
Created: 2011-12-01 10:41:27+00:00
State: open

python3 forward.py -p 4111 -r localhost:22 server
Traceback (most recent call last):
File "forward.py", line 180, in
main()
File "forward.py", line 159, in main
client.load_system_host_keys()
File "/usr/lib/python3/dist-packages/paramiko/client.py", line 151, in load_system_host_keys
self._system_host_keys.load(filename)
File "/usr/lib/python3/dist-packages/paramiko/hostkeys.py", line 159, in load
e = HostKeyEntry.from_line(line)
File "/usr/lib/python3/dist-packages/paramiko/hostkeys.py", line 69, in from_line
key = RSAKey(data=base64.decodebytes(key))
File "/usr/lib/python3.2/base64.py", line 360, in decodebytes
return binascii.a2b_base64(s)
binascii.Error: Incorrect padding