On Mon, Apr 14, 2008 at 12:18:06PM +1000, Amos Shapira wrote:
> I'm setting up a script which uses sftp to manipulate remote files
> through ssh. I created a private/public key pair for it without a pass
> phrase on it, installed the public key on the remote server and now I
> can use both "ssh" and "sftp" to login to it.
> 
> I'd like to restrict this key to be able to use only "sftp" and nothing else.
> 

You need a wrapper command to do this effectively. Have a look at
scponly

http://sublimation.org/scponly/wiki/index.php/Main_Page

Cheers,

-- 
John
http://www.inodes.org/
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to