1826811 Members
3813 Online
109704 Solutions
New Discussion

Re: User Only For SFTP

 
AZayed
Super Advisor

User Only For SFTP

Dears,
Good day,

I would like to know how can I make a user called rpmFTP to login to my server using SFTP only. No Telnet, rlogin, FTP or SSH.

Also, Can I create a private/public key based on the "machine serial number" ? So, in case someone took the private key it will not work.

Thanks
Success seems to be connected with action. Successful people keep moving. They make mistakes, but they don't quit.
4 REPLIES 4
David P Lavoie
Frequent Advisor

Re: User Only For SFTP

vaasusworld
Occasional Advisor

Re: User Only For SFTP

Hi,

>>I would like to know how can I make a user called rpmFTP to login to my server using SFTP only. No Telnet, rlogin, FTP or SSH.

sftp (both server and client) internally uses SSH. If you want to use sftp, you will have to enable the secure shall.

When a user runs the sftp client application, the sftp client process spawns the ssh client, and then communicates.
The ssh client in turn establishes a socket connection with the sshd server. The rest of the server interaction is similar to that the ssh client.

Thanks & Regards,
Vasu
vaasusworld
Occasional Advisor

Re: User Only For SFTP

Hi,

Incase if you want to disable Telnet, rlogin, FTP or SSH only for the rpmFTP account, then you can follow the steps provided in "Configuring sftp with chroot" link (Above link!)

I believe generating private/public key based on the "machine serial number" is not recommended. Because, anybody can see the machine serial number. It is written outside of the machine.

Thanks & Regards,
Vasu
Jim Walls
Trusted Contributor

Re: User Only For SFTP

Assuming you have the latest HP version of HP-UX Secure Shell (T1471AA).

Look in /opt/ssh

Read the README files; they have full instructions for setting up tailored environments. Scripts are also provided for setting up these environments. See:

/opt/ssh/utils/

.