Go Job Hunting at the LQ Job Marketplace
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


  Search this Thread
Old 10-18-2010, 09:01 AM   #1
LQ Newbie
Registered: Oct 2006
Posts: 1

Rep: Reputation: 0
sftp user with limited ssh permissions to autologin using publickey


I have a scenario wherein i want the user "sftpuser" to auto-login to the target server without asking for password. At the same time I don't want the user to be restricted for SFTP purpose only.

Currently the sftpuser on target server is defined as below:
sftpuser:x:12345:12345:SFTP Only Account:/u01/stage:/usr/libexec/openssh/sftp-server

Because the home for this sftpuser is set as /u01/stage/, I had created a .ssh directory in /u01/stage/ and updated the "authorized_keys" using the public key from source server.

But ssh sftpuser@sourceserver is failing to login and I suspect its because the sftpuser's shell is defined as "/usr/libexec/openssh/sftp-server"

Could someone help in the way forwards, please.
Thanks in anticipation.

Last edited by blazingrock4u; 10-18-2010 at 09:06 AM.
Old 10-18-2010, 11:52 AM   #2
LQ Veteran
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 416Reputation: 416Reputation: 416Reputation: 416Reputation: 416
Can I ask why the sftpuser needs to be logged in? If you set out the problem you're trying to solve, maybe there is an alternative way.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Trying to think of a way to ssh without interactivity and not using the publickey... trist007 Linux - Newbie 3 07-30-2010 08:26 AM
how to create sftp user only in red hat 4 not ftp user ..only sftp user princeu28 Linux - Newbie 1 10-14-2008 08:10 AM
ssh publickey authentication spx2 Linux - Security 11 01-11-2008 05:27 AM
User Creationg : ssh/sftp user jail to $HOME only routers Solaris / OpenSolaris 2 10-29-2007 11:28 PM
Need help configuring permissions to allow FTP access via SSH/SFTP. dhupke Linux - General 5 06-12-2007 12:26 PM

All times are GMT -5. The time now is 05:29 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration