- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Secure Shell: sftp connection fails for non-root-u...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
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
Community
Resources
Forums
Blogs
- 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
08-23-2005 02:05 AM
08-23-2005 02:05 AM
Secure Shell: sftp connection fails for non-root-user
syslog.log on server:
Aug 23 14:30:36 mail1 sshd[8805]: Accepted keyboard-interactive/pam for jimmy from 128.130.35.38 port 55660 ssh2
Aug 23 14:30:36 mail1 sshd[8807]: subsystem request for sftp
Server:
# /opt/ssh/sbin/sshd -ddd
debug2: load_server_config: filename /opt/ssh/etc/sshd_config
debug2: load_server_config: done config len = 290
debug2: parse_server_config: config /opt/ssh/etc/sshd_config len 290
debug1: sshd version OpenSSH_3.9 [ HP-UX Secure Shell-A.03.91.003 ]
debug3: Not a RSA1 key file /opt/ssh/etc/ssh_host_rsa_key.
debug1: read PEM private key done: type RSA
debug1: private host key: #0 type 1 RSA
debug3: Not a RSA1 key file /opt/ssh/etc/ssh_host_dsa_key.
debug1: read PEM private key done: type DSA
debug1: private host key: #1 type 2 DSA
debug1: rexec_argv[0]='/opt/ssh/sbin/sshd'
debug1: rexec_argv[1]='-ddd'
debug2: fd 4 setting O_NONBLOCK
debug1: Bind to port 22 on ::.
Server listening on :: port 22.
debug2: fd 5 setting O_NONBLOCK
debug1: Bind to port 22 on 0.0.0.0.
Server listening on 0.0.0.0 port 22.
debug3: fd 6 is not O_NONBLOCK
debug1: Server will not fork when running in debugging mode.
debug3: send_rexec_state: entering fd = 9 config len 290
debug3: ssh_msg_send: type 0
debug3: send_rexec_state: done
debug1: rexec start in 6 out 6 newsock 6 pipe -1 sock 9
Client:
# sftp -v jimmy@mail1
Connecting to mail1...
OpenSSH_4.1, OpenSSL 0.9.7e 25 Oct 2004
HP-UX Secure Shell-A.04.00.001, HP-UX Secure Shell version
debug1: Reading configuration data /opt/ssh/etc/ssh_config
debug1: Connecting to mail1 [128.130.35.37] 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 -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_3.9
debug1: match: OpenSSH_3.9 pat OpenSSH_3.*
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 'mail1' is known and matches the RSA host key.
debug1: Found key in /root/.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: /root/.ssh/id_rsa
debug1: Trying private key: /root/.ssh/id_dsa
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
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.6 seconds
debug1: Bytes per second: stdin 0.0, stdout 0.0, stderr 0.0
debug1: Exit status -1
Connection closed
Any ideas?
Fritz
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2005 02:08 AM
08-23-2005 02:08 AM
Re: Secure Shell: sftp connection fails for non-root-user
more /etc/passwd will show you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2005 02:30 AM
08-23-2005 02:30 AM
Re: Secure Shell: sftp connection fails for non-root-user
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2005 02:34 AM
08-23-2005 02:34 AM
Re: Secure Shell: sftp connection fails for non-root-user
maybe there's no entry for tcsh in /etc/shells.
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2005 02:40 AM
08-23-2005 02:40 AM
Re: Secure Shell: sftp connection fails for non-root-user
http://www.tcsh.org/MostRecentRelease
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2005 09:03 PM
08-23-2005 09:03 PM
Re: Secure Shell: sftp connection fails for non-root-user
As I've mentioned /etc/shells contains the login shell /usr/bin/tcsh. But this is only a symbolic link to /usr/local/bin/tcsh. In /etc/PATH /usr/local/bin is found before /usr/bin (I don't know why, but sometime the order must have changed). So the only thing to do is to correct the order in /etc/PATH or add /usr/local/bin/tcsh to /etc/shells or better to make both. It's interesting that ssh-logins were satisfied by the existing entry in /etc/shells. Thank you for the helpful hint!
Fritz
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2005 09:13 PM
08-23-2005 09:13 PM
Re: Secure Shell: sftp connection fails for non-root-user
As you can read in my answer to Michael it was not a matter of tcsh version. But nevertheless I upgraded to tcsh 6.13 (part of latest TC-OpenSource package). But after invoking it shows this annoying "tcsh: using dumb terminal settings". Therfore I exchanged the binary with a PA-RISC 1.1 binary which starts "silently". But I should eventually open a new thread about this item.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2005 09:18 PM
08-23-2005 09:18 PM
Re: Secure Shell: sftp connection fails for non-root-user
Can you please post your /opt/ssh/etc/sshd_config. Wud like to look into the configuration.
Regards,
Syam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2005 09:41 PM
08-23-2005 09:41 PM
Re: Secure Shell: sftp connection fails for non-root-user
See attachment.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2005 09:54 PM
08-23-2005 09:54 PM
Re: Secure Shell: sftp connection fails for non-root-user
Regards,
Syam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2005 10:07 PM
08-23-2005 10:07 PM
Re: Secure Shell: sftp connection fails for non-root-user
hash the following lines in your sshd_config and restart sshd.
KerberosAuthentication yes
UsePAM yes
X11Forwarding yes
X11UseLocalhost no
Regards,
Syam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2005 10:28 PM
08-23-2005 10:28 PM
Re: Secure Shell: sftp connection fails for non-root-user
Fritz
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2005 09:51 PM
08-24-2005 09:51 PM
Re: Secure Shell: sftp connection fails for non-root-user
BTW the "dumb terminal settings" problem has been solved too, see this thread: http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=910389