1751781 Members
3972 Online
108781 Solutions
New Discussion юеВ

Re: sftp not connecting.

 
fizan
Super Advisor

sftp not connecting.

actually while i am trying to connect from serverA to serverB i get this output. ?

sftp -v nishara@192.168.10.25
Connecting to 192.168.10.25...
OpenSSH_4.1, OpenSSL 0.9.7e 25 Oct 2004
HP-UX Secure Shell-A.04.10.003, HP-UX Secure Shell version
debug1: Reading configuration data /opt/ssh/etc/ssh_config
debug1: Connecting to 192.168.10.25 [192.168.10.25] port 22.
debug1: Connection established.
debug1: permanently_set_uid: 0/3
debug1: identity file /.ssh/id_rsa type -1
debug1: Remote protocol version 1.99, remote software version OpenSSH_4.1
debug1: match: OpenSSH_4.1 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_4.1
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-cbc hmac-md5 none
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host '192.168.10.25' is known and matches the RSA host key.
debug1: Found key in /.ssh/known_hosts:1
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug1: Next authentication method: publickey
debug1: Trying private key: /.ssh/id_rsa
debug1: Next authentication method: keyboard-interactive
Password:
debug1: Authentication succeeded (keyboard-interactive).
debug1: channel 0: new [client-session]
debug1: Entering interactive session.
debug1: Sending subsystem: sftp
Request for subsystem 'sftp' failed on channel 0
Connection closed


Thanks..
16 REPLIES 16
Michal Kapalka (mikap)
Honored Contributor

Re: sftp not connecting.

hi,

check this link from ITRC :

http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=125579

hope the link will solve your problem.

mikap
Mel Burslan
Honored Contributor

Re: sftp not connecting.

Instaead of sftp, if you ssh to this server, can you get connected without any problems ?
________________________________
UNIX because I majored in cryptology...
Rita C Workman
Honored Contributor

Re: sftp not connecting.

I think to run sftp for network ports you need 21 AND 115 open. Check to see if they are.
Along with Mel's comments, if you can't run ssh, see you can run scp and copy the files over that way (which I'd prefer over sftp).

Rita
fizan
Super Advisor

Re: sftp not connecting.

ya i can connect to that server by ssh logins but not by scp or sftp .
Michal Kapalka (mikap)
Honored Contributor

Re: sftp not connecting.

hi,

check the /etc/ssh/sshd_config

i you have this line :

Subsystem sftp /usr/libexec/openssh/sftp-server

mikap

PS : did you try to connect to the ssh, with a sftp from loalhost ???
fizan
Super Advisor

Re: sftp not connecting.

sorry no file like tat in /etc?
Michal Kapalka (mikap)
Honored Contributor

Re: sftp not connecting.

hi,

sorry on HP-UX its in this location :

/etc/opt/ssh

but the option should be defult enabled.

mikap
fizan
Super Advisor

Re: sftp not connecting.

hi


this is the o/p i got from /etc/opt/ssh

Subsystem sftp /opt/ssh/libexec/sftp-server
fizan
Super Advisor

Re: sftp not connecting.

hi Mikap,

i tried to connect now, but i am getting the error as

sftp nishara@192.168.10.25
Connecting to 192.168.10.25...
ssh: connect to host 192.168.10.25 port 22: Connection refused
Couldn't read packet: Connection reset by peer