dest service use .bashrc to change python version ,open sftp error

Bug #1012694 reported by esbatmop@gmail.com
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
paramiko
New
Undecided
Unassigned

Bug Description

when the remote PC use ~/.bashrc to change python version
s.open_sftp() while report a error:
SFTPError: Garbage packet received

remote PC ~/.bashrc like this:
$source ~/.pythonbrew/etc/bashrc
$pythonbrew use 2.6.7

code like this:
s = paramiko.SSHClient()
s.load_system_host_keys()
s.set_missing_host_key_policy(paramiko.AutoAddPolicy())
s.connect(ip, port, username, password)
s.open_sftp() # get error at here

if I made remote PC ~/.bashrc like this:
#source ~/.pythonbrew/etc/bashrc
#pythonbrew use 2.6.7
then no error

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.