summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
6d4cd64)
* fix some leftover reference to the wrong variable (self.path instead
of self.netloc)
does not support password authentication or password
protected authentication keys"""
def __init__(self, url, **kw):
does not support password authentication or password
protected authentication keys"""
def __init__(self, url, **kw):
- if self.path.find('@') != -1:
+ if self.netloc.find('@') != -1:
user, self.netloc = self.netloc.split('@')
else:
user = None
user, self.netloc = self.netloc.split('@')
else:
user = None
-# if self.netloc.find(':') != -1:
-# host, self.path = self.netloc.split(':')
-# else:
-# host, self.path = self.netloc.split('/', 1)
-
self.config = SSHHostConfig(self.netloc, user)
host_keys = paramiko.util.load_host_keys(os.path.expanduser('~/.ssh/known_hosts'))
self.config = SSHHostConfig(self.netloc, user)
host_keys = paramiko.util.load_host_keys(os.path.expanduser('~/.ssh/known_hosts'))