- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: SSH and 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
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
тАО06-05-2009 08:36 AM
тАО06-05-2009 08:36 AM
Is there a way to implement that? How?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-05-2009 08:52 AM
тАО06-05-2009 08:52 AM
Re: SSH and Secure FTP (SFTP)
Yes, SSH and SFTP utilize the same network port and both are part of the SSH package.
I don't quite understand what you mean when you say "...I need some hosts to use the ssh only, and some hosts use ssh and sftp."
Are you saying you want some hosts to only allow ssh connections into them and NOT sftp, and other hosts allow both ssh and sftp connection?
If that is the case you might be able to do something with the "subsystem" configuration option of the sshd_config file. See 'man sshd_config' for more information.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-05-2009 08:57 AM
тАО06-05-2009 08:57 AM
Re: SSH and Secure FTP (SFTP)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-05-2009 08:59 AM
тАО06-05-2009 08:59 AM
SolutionHere's what I did:
Found the sshd_config file (You will have to look for yours)
Edit the sshd_ocnfig file in vi
Look for the "subsystem" section. The file should contain a section similar to this:
# override default of no subsystems
Subsystem sftp /usr/lib64/ssh/sftp-server
This tells sshd to start the sftp-server program when it received sftp requests. Comment out the 'subsystem' line so it looks like:
# override default of no subsystems
#Subsystem sftp /usr/lib64/ssh/sftp-server
Then save the file and stop and restart the SSH daemon.
Now when you SFTP you should get something like:
$ sftp hqtas14t
Connecting to hqtas14t...
Request for subsystem 'sftp' failed on channel 0
Couldn't read packet: Connection reset by peer
On the servers that need sftp to work, don't change the sshd_config file and it should stay working.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-05-2009 09:01 AM
тАО06-05-2009 09:01 AM
Re: SSH and Secure FTP (SFTP)
Above you said "from one host" and "on the other host."
So do you mean you don't want people to EXECUTE SFTP on "the other host?"
If that is the case, you could remove execute permissions from SFTP, or write a wrapper script that disallows SFTP.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-05-2009 09:10 AM
тАО06-05-2009 09:10 AM
Re: SSH and Secure FTP (SFTP)
One HP-UX 11.11 server got Secure Shell Installed.
One PC needs to access to the HP-UX server using ssh and transfer files by Secure FTP
Other PC needs to access to the HP-UX server using ssh, but no need of Secure FTP (must be disabled).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-05-2009 10:34 AM
тАО06-05-2009 10:34 AM
Re: SSH and Secure FTP (SFTP)
This is a bird of a different color......
I do not know if there is a way to allow incoming ssh and sftp from one PC, but allow ssh only from another PC.
For the 2nd PC, you could just rename the sftp executable.