SFTP/SCP: SFTP connection hangs

Published by

Posted on March 23, 2009

Error:
The SFTP connection and SCP connection hangs after entering the password

Sample log :

debug1: Authentication succeeded (password).
debug1: channel 0: new [client-session]
debug1: Entering interactive session.
debug1: Sending subsystem: sftp
———
Run the SFTP in debug mode sftp -v
————–
I was able to resolve this by renaming .bashrc , you may also want to check the settings within this file..

————-
before renaming the file please ensure sshd is running on the remote host and the sshd_config file has the following at the end.
Subsystem sftp /path/to/sftp-server