ubuntu 11.10 desktop: paramiko.SSHException: No existing session
hi,
i am trying paramiko on my ubuntu 11.10 desktop. and it always failed with:
python ssh_test.py
*INFO* Logging into '10.56.117.82:22' as 'root'.
Traceback (most recent call last):
File "ssh_test.py", line 22, in <module>
main()
File "ssh_test.py", line 14, in main
ssh.
File "/usr/local/
self.
File "/usr/local/
self.
File "build/
File "build/
i have tried it, and find in transport module:
def auth_password(self, username, password, event=None, fallback=True):
1152 if (not self.active) or (not self.initial_
1153 # we should never try to send the password unless we're on a secure link
1154 raise SSHException('No existing session')
self.active is false. I haven't investigate more.
but if use "sudo python ssh_test.py" to run, it is ok.
my Ubuntu is use default user configuration(root has not configure password).
I don't know why must use root to run it?
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu paramiko Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- actionparsnip
- Solved:
- Last query:
- Last reply: