- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: SFTP HP-UX Secure Shell A.03.81
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
12-21-2004 05:04 PM
12-21-2004 05:04 PM
SFTP HP-UX Secure Shell A.03.81
Set up chrooted user as per HP-UX Secure Shell A.03.81 http://docs.hp.com/en/T1471-90011/index.html
When trying to sftp get error after entering password:
debug1: Exit status 134
Connection closed
Does anyone know what error code 134 refers to?
Tks,
Belinda
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-21-2004 05:28 PM
12-21-2004 05:28 PM
Re: SFTP HP-UX Secure Shell A.03.81
Check the following:
1. Run the server and client in debug mode to trace out possible error.
2.Check whether you have copied all the libraries specified in document to the new root ( try /opt/ssh/ssh_chroot_setup.sh)
3. Set Usepam no in sshd_config and restart the server and test the connection.
4. Refer your syslog for any clues about the failure.
5.Did ssh
6. Check the following sshd_config directive
# override default of no subsystems
Subsystem sftp /opt/ssh/libexec/sftp-server
This should be uncommented and the subsytem should reside in
/newroot/opt/ssh/libexec/sftp-server
8. Try HP Secure Shell (A.03.91) which is newer version.
Still problem exists post your server and client debug messages
Hope this helps
--
M
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-21-2004 06:11 PM
12-21-2004 06:11 PM
Re: SFTP HP-UX Secure Shell A.03.81
Tks for your quick reply:
1. Run the server and client in debug mode to trace out possible error.
Done - only get error
debug1: Exit status 134
Connection closed
on client side
2.Check whether you have copied all the libraries specified in document to the new root ( try /opt/ssh/ssh_chroot_setup.sh)
Created user via this script for ssh & sftp
3. Set Usepam no in sshd_config and restart the server and test the connection.
Set PAM to no & restarted sshd
4. Refer your syslog for any clues about the failure.
Dec 22 16:44:11 host sshd[13475]: Accepted keyboard-interactive/pam for sftpuser from 165.240.0.204 port 57562 ssh2
Dec 22 16:44:11 host sshd[13489]: subsystem request for sftp
5.Did ssh
Yes ssh works
6. Check the following sshd_config directive
# override default of no subsystems
Subsystem sftp /opt/ssh/libexec/sftp-server
/home/chroot # cat /opt/ssh/etc/sshd_config | grep sftp
Subsystem sftp /opt/ssh/libexec/sftp-server
This should be uncommented and the subsytem should reside in
/newroot/opt/ssh/libexec/sftp-server
yes copy is here in chroot dir
8. Try HP Secure Shell (A.03.91) which is newer version.
Yet to try
Still problem exists post your server and client debug messages
Still getting Error exit status 134
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-21-2004 06:13 PM
12-21-2004 06:13 PM
Re: SFTP HP-UX Secure Shell A.03.81
Tks,
Belinda
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-21-2004 08:52 PM
12-21-2004 08:52 PM
Re: SFTP HP-UX Secure Shell A.03.81
Check the permissons of sftp subsystem
it should be simillar to
-rwxr-xr-x 1 bin bin 314532 Dec 9 12:55 /newroot/opt/ssh/libexec/sftp-server
check the following block in server debug messages:
subsystem request for sftp
debug1: subsystem: exec() /opt/ssh/libexec/sftp-server
debug2: fd 14 setting O_NONBLOCK
debug2: fd 13 setting O_NONBLOCK
Post the detailed Server debug message.
--
M
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2004 11:06 AM
12-22-2004 11:06 AM
Re: SFTP HP-UX Secure Shell A.03.81
lrwxr-xr-x 1 root sys 21 Dec 22 23:40 libcom_err.sl -> /usr/lib/libcom_err.1
lrwxr-xr-x 1 root sys 22 Dec 22 23:40 libk5crypto.sl -> /usr/lib/libk5crypto.1
lrwxr-xr-x 1 root sys 18 Dec 22 23:40 libkrb5.sl -> /usr/lib/libkrb5.1
lrwxr-xr-x 1 root sys 23 Dec 22 23:40 libgssapi_krb5.sl -> ./gss/libgssapi_krb5.sl
delete symbolic links and copy the libraries from /usr/lib.
Also you may find that libpthread.1 is missing in the chrooted directory, so copy it to ${chroot_dir}/usr/lib.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2004 12:56 PM
12-22-2004 12:56 PM
Re: SFTP HP-UX Secure Shell A.03.81
Server debug bolock attached.
Permissions 755 on sftp-server
/home/chroot/opt/ssh/libexec # ll
total 336
-rwxr-xr-x 1 bin bin 172032 Jul 3 00:52 sftp-server
Tks,
Belinda
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2004 01:17 PM
12-22-2004 01:17 PM
Re: SFTP HP-UX Secure Shell A.03.81
removed links and copied files from /usr/lib as suggested. Also copied libpthread.1. Still getting error 134.
Belinda
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2004 01:35 PM
12-22-2004 01:35 PM
Re: SFTP HP-UX Secure Shell A.03.81
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2004 01:47 PM
12-22-2004 01:47 PM
Re: SFTP HP-UX Secure Shell A.03.81
# /usr/sbin/chroot /home/chroot /opt/ssh/libexec/sftp-server
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2004 02:29 PM
12-22-2004 02:29 PM
Re: SFTP HP-UX Secure Shell A.03.81
Yes when I remove the chroot env then sftp works fine.
/home/chroot/./home/sftpuser -> /home/chroot/home/sftpuser
debug1: Sending subsystem: sftp
debug2: channel 0: request subsystem
debug2: callback done
debug2: channel 0: open confirm rwindow 0 rmax 32768
debug2: channel 0: rcvd adjust 131072
debug2: Remote version: 3
debug3: Sent message fd 6 T:16 I:1
debug3: SSH_FXP_REALPATH . -> /home/chroot/home/sftpuser
sftp>
I though it may be a permission problem, but I have set everything up as per the HP instructions.
Belinda
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2004 02:52 PM
12-22-2004 02:52 PM
Re: SFTP HP-UX Secure Shell A.03.81
Off to award some points. Appreciate all your input.
Cheers,
Belinda
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2004 02:53 PM
12-22-2004 02:53 PM