LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-04-2009, 11:04 PM   #1
lth0721
LQ Newbie
 
Registered: Mar 2009
Posts: 11

Rep: Reputation: 0
SSH Secure File Transfer Client connection failed in rbash


I created a user named allen and changed its shell to rbash.
then set his environment like this
Code:
# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
        . ~/.bashrc
fi

# User specific environment and startup programs

unset PATH

PATH=$PATH:/home/allen/bin

export PATH
then only copy /bin/su to /home/allen/bin

and I can login with SSH Secure Shell Client by this user but can't with SSH Secure File Transfer Client

below is the server log at /var/log/secure


Mar 6 01:58:08 localhost sshd[18049]: Accepted password for allen from 10.0.1.6 port 44205 ssh2
Mar 6 01:58:08 localhost sshd[18049]: pam_unix(sshd:session): session opened for user allen by (uid=0)
Mar 6 01:58:08 localhost sshd[18051]: subsystem request for sftp
Mar 6 01:58:08 localhost sshd[18049]: pam_unix(sshd:session): session closed for user allen

belw is the error log at client side

Exit value 1 was returned.Most likely the sftp-server is not in the path of the user on the server-side.
anyone can give me a hand
Attached Thumbnails
Click image for larger version

Name:	ssh.jpg
Views:	21
Size:	22.1 KB
ID:	242  

Last edited by lth0721; 03-05-2009 at 05:09 AM.
 
Old 03-05-2009, 03:51 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607
I suggest you search LQ for "ssh" in combination with "scponly" or "rssh". Most likely you'll find related threads in the Linux Security forum. If you search for "rbash" you might find some reasons why using it doesn't provide you with much more in terms of security and flexibility.
 
Old 03-05-2009, 05:09 AM   #3
lth0721
LQ Newbie
 
Registered: Mar 2009
Posts: 11

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by unSpawn View Post
I suggest you search LQ for "ssh" in combination with "scponly" or "rssh". Most likely you'll find related threads in the Linux Security forum. If you search for "rbash" you might find some reasons why using it doesn't provide you with much more in terms of security and flexibility.
thanks for your suggestions
 
  


Reply


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
Secure file transfer through SSH session Simsam Hijjawi Linux - Security 2 11-21-2007 01:36 AM
Secure file transfer server - tools ? taphagreg Linux - Security 1 03-19-2007 11:52 PM
Building a Secure File Transfer Gateway - thoughts please taphagreg Linux - Server 2 03-15-2007 02:43 PM
LXer: University of Michigan Selects SSH Tectia for Secure System Administration and Secure File Transfers LXer Syndicated Linux News 0 04-25-2006 01:54 AM
[most secure, open source, client/server file transfer program] Synesthesia Linux - Software 5 11-28-2005 09:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:16 AM.

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