Skip to content

forward.py chokes when reading hostkeys #1

@rfehren

Description

@rfehren

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions