- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: sftp fails for non-root user, ssh is OK
Operating System - HP-UX
1752489
Members
5573
Online
108788
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-28-2009 01:46 PM
тАО05-28-2009 01:46 PM
sftp fails for non-root user, ssh is OK
I have 2 HP-UX boxes loaded from the same DVD set a year ago, using HP-UX Secure Shell out-of-the-box config. These are servers & have only one user (non-root) account each, same username & same lines in /etc/passwd for each. I just noticed that this user can ssh between boxes & authenticate OK (not sharing keys) but sftp only works from box A to box B, not from box B to box A. Box A syslog.log reports this upon failure:
May 28 17:15:38 box-A sshd[5594]: error: PAM: Authentication failed for wcadmin from box-B
root can sftp either direction OK.
From my PC I cannot use sftp to get into box A as this ordinary user either.
I don't really use PAM, but each box sshd_config has "UsePAM yes". I set that to "no" and the error message went away but sftp still exits right away after the password is entered. Both systems' sshd_conf are otherwise identical. Both have "Subsystem sftp /opt/ssh/libexec/sftp-server".
sftp -v box-A gives this, in part, which does not seem to help:
... ...
debug1: Next authentication method: keyboard-interactive
Password:
debug1: Authentication succeeded (keyboard-interactive).
debug1: Final hpn_buffer_size = 131072
debug1: channel 0: new [client-session]
debug1: Entering interactive session.
debug1: Sending subsystem: sftp
debug1: client_input_channel_req: channel 0 rtype exit-signal reply 0
debug1: channel 0: free: client-session, nchannels 1
debug1: fd 0 clearing O_NONBLOCK
debug1: fd 1 clearing O_NONBLOCK
debug1: Transferred: stdin 0, stdout 0, stderr 0 bytes in 0.0 seconds
debug1: Bytes per second: stdin 0.0, stdout 0.0, stderr 0.0
debug1: Exit status -1
Connection closed
Home directory permissions etc look OK. I'm at wits end on this one!
May 28 17:15:38 box-A sshd[5594]: error: PAM: Authentication failed for wcadmin from box-B
root can sftp either direction OK.
From my PC I cannot use sftp to get into box A as this ordinary user either.
I don't really use PAM, but each box sshd_config has "UsePAM yes". I set that to "no" and the error message went away but sftp still exits right away after the password is entered. Both systems' sshd_conf are otherwise identical. Both have "Subsystem sftp /opt/ssh/libexec/sftp-server".
sftp -v box-A gives this, in part, which does not seem to help:
...
debug1: Next authentication method: keyboard-interactive
Password:
debug1: Authentication succeeded (keyboard-interactive).
debug1: Final hpn_buffer_size = 131072
debug1: channel 0: new [client-session]
debug1: Entering interactive session.
debug1: Sending subsystem: sftp
debug1: client_input_channel_req: channel 0 rtype exit-signal reply 0
debug1: channel 0: free: client-session, nchannels 1
debug1: fd 0 clearing O_NONBLOCK
debug1: fd 1 clearing O_NONBLOCK
debug1: Transferred: stdin 0, stdout 0, stderr 0 bytes in 0.0 seconds
debug1: Bytes per second: stdin 0.0, stdout 0.0, stderr 0.0
debug1: Exit status -1
Connection closed
Home directory permissions etc look OK. I'm at wits end on this one!
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-29-2009 02:18 AM
тАО05-29-2009 02:18 AM
Re: sftp fails for non-root user, ssh is OK
Hi Alan,
Are you finding any differences on the values for below variables in the sshd_config
EnforceSecureTTY and PermitRootLogin ,
It seems the values for the above varible influence ssh sftp & scp diffently.. if possible paste the values from both server
BTW are you able to do scp ??
i hope the below link through some light :-)
http://docs.hp.com/en/5992-4213/ch04s07.html
Thanks!!
Johnson
Are you finding any differences on the values for below variables in the sshd_config
EnforceSecureTTY and PermitRootLogin ,
It seems the values for the above varible influence ssh sftp & scp diffently.. if possible paste the values from both server
BTW are you able to do scp ??
i hope the below link through some light :-)
http://docs.hp.com/en/5992-4213/ch04s07.html
Thanks!!
Johnson
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-29-2009 06:01 AM
тАО05-29-2009 06:01 AM
Re: sftp fails for non-root user, ssh is OK
As mentioned above both boxes sshd_config are identical & as out-of-the box from the system load. Specifically,
#EnforceSecureTTY no
and
#PermitRootLogin yes
Trying scp lead me to see that there was a difference in the .cshrc files on the 2 boxes. The problem box user's .cshrc had:
if ( $?prompt ) then
...
...
endif
but there must have been some extraneous characters somewhere in the if / then / endif lines, because my first try at scp into the problem box returned:
then: then/endif not found.
I removed & retyped those lines and all is OK now! scp runs with no complaint and sftp works fine. Thanks for advice to try scp !!!
#EnforceSecureTTY no
and
#PermitRootLogin yes
Trying scp lead me to see that there was a difference in the .cshrc files on the 2 boxes. The problem box user's .cshrc had:
if ( $?prompt ) then
...
...
endif
but there must have been some extraneous characters somewhere in the if / then / endif lines, because my first try at scp into the problem box returned:
then: then/endif not found.
I removed & retyped those lines and all is OK now! scp runs with no complaint and sftp works fine. Thanks for advice to try scp !!!
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP