Operating System - HP-UX
1753666 Members
6232 Online
108799 Solutions
New Discussion юеВ

Re: SCP and SFTP give error but SSH works fine.

 
Troy Ameigh
New Member

SCP and SFTP give error but SSH works fine.

Ok this is an issues I have not seen before. I have a HP-UX 11.23 server. I can SSH to and from the system, I can SCP and SFTP from the server; however when I try to SCP to the server I get an error like the following.

scp test user@server:/tmp
Password:
unknown user 107
lost connection

107 happens to be the correct UID for this user. This happens with any user that trys to SCP to the server. Does anyone have any ideas. Thanks
4 REPLIES 4
Michal Tuma
New Member

Re: SCP and SFTP give error but SSH works fine.

Hi Troy,
have you seen the log file. Usually located /var/adm/syslog/syslog.log on target server? Look there and maybe you will see what happens.

Michal
Steven E. Protter
Exalted Contributor

Re: SCP and SFTP give error but SSH works fine.

Shalom,

Check the user configuration for this user. My feeling here is that something scp needs is missing.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Fabio Ettore
Honored Contributor

Re: SCP and SFTP give error but SSH works fine.

Hi,

try to get a verbose output of the scp command by -vvv and post the output.

Best regards,
Fabio
WISH? IMPROVEMENT!
Steve Post
Trusted Contributor

Re: SCP and SFTP give error but SSH works fine.

check the directory and file permissions of the home directory and .ssh directory for the user of the host you are connecting to.