Re: rssh, nothing happens
On Fri, Nov 04, 2005 at 01:04:14AM +0100, Rakotomandimby Mihamina wrote:
> Hi,
Hi,
> I got rssh 2.2.3 (Debian packaged)
> I creatd a test user.
>
> $ grep test /etc/passwd
> test:x:1001:1001:,,,:/home/test:/usr/bin/rssh
>
> This is how I configured rssh:
>
> $ cat /etc/rssh.conf
> logfacility = LOG_USER
> allowscp
> allowsftp
> #allowcvs
> #allowrdist
> #allowrsync
> umask = 022
> user=test:022:00011:/home/test
^^^^^^^^^^
Are you sure, you want the user chrooted?
If you just want a basic user, who can scp and sftp, you don't need the
user specific line in your /etc/rssh.conf.
> The problem (192.168.1.2 is the bos rssh is installed on):
> When uploading, connection is lost.
>
> $ scp file_to_upload.txt test@192.168.1.2:/home/test/
The command should be $ scp file_to_upload.txt test@192.168.1.2:
I.e. the home directory is implied by nothing after the colon.
> Password:
> lost connection
> $
>
> (the same happens is I change "/home/test/" with "/")
> When downloading:
> Nothing happens.
> $ scp test@192.168.1.2:/home/test/file_to_download.txt .
This should be $ scp test@192.168.1.2:file_to_download.txt ./
And if you have files in subdirectories in your /home/test e.g.
/home/test/src/test.c you copy it like:
$ scp test@192.168.1.2:src/test.c ./
$ scp another.c test@192.168.1.2:src/
> Password:
> $
>
> (the same happens is I change "/home/test/" with "/")
> If I provide voluntarily a wrong password, I am just re-prompted to
> enter it.
>
> I am sure to have missed something, but dont know what...
> Would you help me?
>
> --
> Administration & Formation à l'administration
> de serveurs dédiés:
> http://www.google.fr/search?q=aspo+infogerance+serveur
HTH,
Simo
--
:r ~/.signature
Reply to: