1753492 Members
5225 Online
108794 Solutions
New Discussion

sftp issue

 
Patrice Blanchard_2
Frequent Advisor

sftp issue

Hi,

i'm trying to use sftp on my hp-ux system

i've created a public key but still the process is asking me for a userid and password.

root@apsrvn:[/root]# sftp -v csftp-citi.ms.gxs.com 22

Connecting to csftp-citi.ms.gxs.com...

OpenSSH_5.0p1+sftpfilecontrol-v1.2-hpn13v1, OpenSSL 0.9.7m 23 Feb 2007

HP-UX Secure Shell-A.05.00.022, HP-UX Secure Shell version

debug1: Reading configuration data /opt/ssh/etc/ssh_config

debug1: Connecting to csftp-citi.ms.gxs.com [150.105.184.107] port 22.

debug1: Connection established.

debug1: permanently_set_uid: 0/3

debug1: identity file /root/.ssh/id_rsa type 1

debug1: identity file /root/.ssh/id_dsa type 2

debug1: Remote protocol version 2.0, remote software version GXSSSHD_Comments

debug1: no match: GXSSSHD_Comments

debug1: Enabling compatibility mode for protocol 2.0

debug1: Local version string SSH-2.0-OpenSSH_5.0p1+sftpfilecontrol-v1.2-hpn13v1

debug1: SSH2_MSG_KEXINIT sent

debug1: SSH2_MSG_KEXINIT received

debug1: AUTH STATE IS 0

debug1: REQUESTED ENC.NAME is 'aes128-cbc'

debug1: kex: server->client aes128-cbc hmac-md5 none

debug1: REQUESTED ENC.NAME is 'aes128-cbc'

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 'csftp-citi.ms.gxs.com' is known and matches the RSA host key.

debug1: Found key in /root/.ssh/known_hosts:10

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

Please login with user ID and password.debug1: Authentications that can continue

: password,publickey,keyboard-interactive

debug1: Next authentication method: publickey

debug1: Offering public key: /root/.ssh/id_rsa

debug1: Authentications that can continue: password,publickey,keyboard-interacti

ve

debug1: Offering public key: /root/.ssh/id_dsa

debug1: Authentications that can continue: password,publickey,keyboard-interacti

ve

debug1: Next authentication method: keyboard-interactive

debug1: Authentications that can continue: password,publickey,keyboard-interacti

ve

debug1: Next authentication method: password

root@csftp-citi.ms.gxs.com's password:

 

in my sshd_config file, StrictModes is set to no

what am i doing wrong?

1 REPLY 1
Steven Schweda
Honored Contributor

Re: sftp issue

> i'm trying to use sftp on my hp-ux system

   Client and server on the same system?

> i've created a public key [...]

   How/where, exactly?

> root@apsrvn:[/root]# [...]

   User "root" can be blocked by a server because it's "root".  Have you
checked the server configuration file for that?

debug1: Offering public key: /root/.ssh/id_rsa
debug1: Authentications that can continue: password,publickey,keyboard-interactive

debug1: Offering public key: /root/.ssh/id_dsa
debug1: Authentications that can continue: password,publickey,keyboard-interactive

   To me, that looks as if the server is rejecting each of those two
public keys.  If you want details on why, then you'll need to look at
the server logs.  (The server should know why it's unhappy, but it won't
help someone break in by telling the client why.)