SUPPORT THE SITE WITH A CLICK

Subscribe Rss:

SUPPORT THE SITE WITH A CLICK

Thursday, January 10, 2008

Grant access to sftp and scp for all users in linux

For giving grant access to scp or sftp

open /etc/rssh.conf file:
#vi /etc/rssh.conf


Append or uncomment following two lines
allowscp
allowsftp

Save and close the file.
rssh reads configuration file(now there is no rssh service exists). Now user should able to run scp and sftp commands, but no shell access is granted.now the output will display like this,

root@aspx-desktop:~# sftp linux@192.168.1.230
Connecting to 192.168.1.230...
linux@192.168.1.230's password:
sftp>