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 [EMAIL PROTECTED]:/home/test/ The command should be $ scp file_to_upload.txt [EMAIL PROTECTED]: 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 [EMAIL PROTECTED]:/home/test/file_to_download.txt . This should be $ scp [EMAIL PROTECTED]: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 [EMAIL PROTECTED]:src/test.c ./ $ scp another.c [EMAIL PROTECTED]: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 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]