- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- restricted secure ftp (sftp) !
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
Discussions
Discussions
Discussions
Forums
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
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
тАО05-19-2005 12:12 PM
тАО05-19-2005 12:12 PM
restricted secure ftp (sftp) !
I have a lot of ftp users configured with restricted ftp rules using the ftpaccess file , etc. But now I want to configure some ftp accounts using sftp with the same characteristics.
But when i use de sftp service i receive a close connection message.
In resume i need to define the same funcionallity in ftp restricted over sftp restricted, or the posibility to establish a ftp connection specifying the username in the same command line like in sftp, ej.
# sftp ftpusr1@146.219.220.6
Obviusly i can use de open command with the ftp command but i need that the ftp session remain active in order to interact with some ftp commands like in a normal ftp session.
Somebody have an idea ?
Thank's in advance !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-19-2005 04:25 PM
тАО05-19-2005 04:25 PM
Re: restricted secure ftp (sftp) !
1)Make sure a firewall is not blocking port 22.
2)ps -ef | grep sshd
If there are no processes running sshd then secure shell/openssh, which is a sftp server is not running.
/sbin/init.d/secsh start
If you can't find it, install secure shell from http://software.hp.com
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
тАО05-20-2005 04:25 AM
тАО05-20-2005 04:25 AM
Re: restricted secure ftp (sftp) !
E1) Succesfully connection.
# sftp ftppdes1@146.219.220.6
Connecting to 146.219.220.6...
Password:
sftp>
E2) Unsuccesfully connection.
# sftp ftppusr1@146.219.220.6
Connecting to 146.219.220.6...
Password:
Connection to 146.219.220.6 closed by remote host.
Connection closed
Obviously when i use a normal ftp connection, i don├В┬┤t have any problem, look it (E3):
E3)
# ftp 146.219.220.6
Connected to 146.219.220.6.
220 FTP server ready.
Name (146.219.220.6:root): ftppusr1
331 Password required for ftppusr1.
Password:
230 User ftppusr1 logged in. Access restrictions apply.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp>
My definition of this user in the passwd file is the next:
ftppusr1:*:116:20:ftp user 1,technical support,0567,:/sii_bussiness/bea/user_projects/domains/SII_DOMAIN/logs/./:/usr/bin/ftpshell
My priority is use the ftp user restriction rules with sftp or use ftp user restriction rules specifying the username in the same command line like in sftp.
Best Regards,
Ivan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-20-2005 08:14 AM
тАО05-20-2005 08:14 AM
Re: restricted secure ftp (sftp) !
You are probably running into issues because of the chrooted env for the user "ftpusr1"
Try this link on how to configure sftp to use the chrooted env for the user.
http://docs.hp.com/en/T1471-90014/ch01s13.html
for sftp / chroot, try this.
http://docs.hp.com/en/T1471-90014/ch01s13.html#babibgef
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-20-2005 01:26 PM
тАО05-20-2005 01:26 PM
Re: restricted secure ftp (sftp) !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-20-2005 03:21 PM
тАО05-20-2005 03:21 PM
Re: restricted secure ftp (sftp) !
/opt/ssh/libexec/sftp-server
This would allowd them to sftp into the box, and ssh'ing in for shell access wouldn't really get them anywhere...
If you still need help, post the output of
sftp -vvv ftpusr1@146.219.220.6
on the failed session.
hope this helps,
-denver
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-26-2005 08:28 PM
тАО06-26-2005 08:28 PM
Re: restricted secure ftp (sftp) !
Login name: suser1 (messages off)
Directory: /home/suser1 Shell: /opt/ssh/libexec/sftp-server
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-28-2005 05:31 AM
тАО09-28-2005 05:31 AM
Re: restricted secure ftp (sftp) !
Wanted to note another oddity. Initially I thought I had the issue noted originally that user could cd anywhere. On testing though I found that is only true if I su to the user from root on the server. Doing sftp login to the server from somewhere else DOES restrict it to the chroot.
That means this would only be an issue if the person you give sftp chroot jail access to also has another non-restricted account on the server and does an su from that one to the restricted one. (In fact I didn't test that - only from root - it may only be a problem from the root user.)
However once you set the shell to sftp-user then su is no longer an issue anyway because they don't get a command line shell anyway.