Operating System - HP-UX
1754419 Members
3584 Online
108813 Solutions
New Discussion юеВ

Blocking SFTP for certain users

 
BPatel_1
Advisor

Blocking SFTP for certain users

Hi,

I am looking out at blocking SFTP access to certain users, but granting SSH access.

Is there any way I can do it.

Thanks in advance

BP
6 REPLIES 6
Jeff_Traigle
Honored Contributor

Re: Blocking SFTP for certain users

Might be possible with the latest 4.40 release. I didn't read the release notes in detail, but I think there were features added to do user level restrictions of some sort.
--
Jeff Traigle
BPatel_1
Advisor

Re: Blocking SFTP for certain users

Can you provide me more details on this please.

Thanks
BP
Jeff_Traigle
Honored Contributor

Re: Blocking SFTP for certain users

Coolmar
Esteemed Contributor

Re: Blocking SFTP for certain users

Heironimus
Honored Contributor

Re: Blocking SFTP for certain users

What are you trying to accomplish? Even if you could disable scp and sftp people with ssh access could still copy files around with something like "tar cf - ./myfiles | ssh server 'tar xf -'".
George Liu_4
Trusted Contributor

Re: Blocking SFTP for certain users

Make no sense if you allow a user to ssh already since sftp normally is invoked from sshd using subsystem options. But you can force sshd not to enable sftp-server, and separate sftp-server from sshd. In that case, it is easy for you to set the restriction for some users.