Hello, I have recently installed openssh6.5 on my Centos box. And I can do ssh to my centos box. But SFTP fails at connection. I get following messages when I try to run sshd in debug mode. debug1: subsystem: exec() /usr/libexec/openssh/sftp-server Starting session: subsystem 'sftp' for op from 192.168.1.101 port 53994 debug1: server_input_channel_req: channel 0 request eow at openssh.com reply 0 debug1: Received SIGCHLD. debug1: session_by_pid: pid 25173 debug1: session_exit_message: session 0 channel 0 pid 25173 debug1: session_exit_message: release channel 0 Received disconnect from 192.168.1.101: 11: disconnected by user debug1: do_cleanup debug1: do_cleanup debug1: PAM: cleanup As suggested in FAQ's I tried following command too. ssh root at 10.64.17.115 /usr/bin/true bash: /usr/bin/true: No such file or directory Can you please guide me why SFTP connection is failing ? Thanks Sachin
On Thu, 3 Jul 2014, Sachin Gupta wrote:> Hello, > > I have recently installed openssh6.5 on my Centos box. > And I can do ssh to my centos box. But SFTP fails at connection. > I get following messages when I try to run sshd in debug mode. > > debug1: subsystem: exec() /usr/libexec/openssh/sftp-server > Starting session: subsystem 'sftp' for op from 192.168.1.101 port 53994 > debug1: server_input_channel_req: channel 0 request eow at openssh.com reply 0 > debug1: Received SIGCHLD. > debug1: session_by_pid: pid 25173 > debug1: session_exit_message: session 0 channel 0 pid 25173 > debug1: session_exit_message: release channel 0 > Received disconnect from 192.168.1.101: 11: disconnected by user > debug1: do_cleanup > debug1: do_cleanup > debug1: PAM: cleanup > > > As suggested in FAQ's I tried following command too. > > ssh root at 10.64.17.115 /usr/bin/true > bash: /usr/bin/true: No such file or directory > > Can you please guide me why SFTP connection is failing ?What does: ssh root at 10.64.17.115 /bin/true produce? Also: ssh root at 10.64.17.115 /usr/libexec/openssh/sftp-server -d
On Thu, Jul 3, 2014 at 7:22 PM, Sachin Gupta <sachin3072004 at gmail.com> wrote:> Hello, > > I have recently installed openssh6.5 on my Centos box. > And I can do ssh to my centos box. But SFTP fails at connection. > I get following messages when I try to run sshd in debug mode.How did you build it? Did you make an RPM, or did you compile from scratch and install it locally, possibly leaving in place the CentOS provided RPM to create confusion and overlapping components? And which CentOS release? Did you use OpenSSH 6,5, or OpenSSH 6.5p1 which has portability patches? The OpenSSH 6.6p1 tarball has a decent working .spec file for RHEL inside it, I do recommend that you use it.