[paramiko] path expanded twice in client.py
james bardin
jbardin at bu.edu
Sat Dec 2 17:45:27 PST 2006
Hi,
just noticed that ~/.ssh is expanded and prefixed twice when looking
for keys in client.py
easy fix:
--- paramiko/client.py 2006-11-24 12:11:36.000000000 -0500
+++ paramiko/client.py 2006-12-02 20:28:37.806657889 -0500
@@ -382,7 +382,6 @@
if os.path.isfile(dsa_key):
keyfiles.append((DSSKey, dss_key))
for pkey_class, filename in keyfiles:
- filename = os.path.expanduser('~/.ssh/' + filename)
try:
key = pkey_class.from_private_key_file(filename, password)
self._log(DEBUG, 'Trying discovered key %s in %s' %
(hexlify(key.get_fingerprint()), filename))
--
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
James Bardin - Systems Analyst / Administrator I
Boston University
Department of Electrical and Computer Engineering
8 Saint Mary's St, Room 305, Boston, MA 02215
Ph:617-358-2785 http://www.bu.edu/ece/it
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
More information about the paramiko
mailing list