{ 3 comments… read them below or add one }

1 Pinoy Compuworld 04.24.08 at 5:58 am

This article is a life saver. I am a freeBSD sysad but was forced to use centos! thanks man! im subscribing to your RSS Feeds!

2 Shubhendu 06.25.08 at 7:47 am

I want to transfer file to other machine using
scp or sftp. How can I use the scp or sftp in my
shell script so that the system takes the password for sftp automatically.

3 stan 07.03.08 at 4:14 pm

Nice tutorial!

I was just happy that I found what I needed, but it seems there’s somethig that I’m missing.

I need user friendly interface to upload/dowload files (for my friends) and rsync (for me :) ). So I uncommented “allowscp”, “allowsftp” and “allowrsync”. I tested ssh, scp and sftp in console and everythig worked as expected, but when I tried to connect with gFTP (I’m using Ubuntu Hardy) and selected SSH2 connection, I was available to browse the direcroties below my user’s home dir. In that case rssh is not really “restricted”. Is this some bug?

gFTP connects to the remote host with “ssh -e none -l myusername 192.168.0.110 -s sftp”. When I type it in the console and enter the password, the cursor blinks on the next row until I press Ctrl+C. In the auth.log says:
Connection from 192.168.0.130 port 36633
Failed none for myusername from 192.168.0.130 port 36633 ssh2
Accepted password for myusername from 192.168.0.130 port 36633 ssh2
pam_unix(sshd:session): session opened for user myusername by (uid=0)
subsystem request for sftp

I’ll make a post in ubuntuforums.org, but tought it will be usefull for others if we find what’s the reason for this behaviour.

I would preffer using rssh whithout chroot, so please help me solve this issue.

Leave a Comment

You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Previous post:

Next post: