thanks
On 08/04/11 14:54, Grassinger, Marcus wrote: > Hi, I had the same issue. It's not /bin/rssh but /usr/bin/rssh or something. > > "which rssh" will tell you. Quite simple to fix :-) > > Greetz > Marcus > > > Marcus Grassinger > > IT-Manager > Sommer GmbH > Tel: +49 (0) 7158 98127-41 > Mob: +49 (0) 176 126886.06 > Fax: +49 (0) 7158 98127-98 > http://www.sommerelectronic.com/ > > Geschäftsführer: Karen French, Gerald Lawrenz, Oliver Schulz > Sitz der Gesellschaft: Sommer GmbH - Kraichgaustr. 5 - D-73765 Neuhausen > Registergericht: Amtsgericht Stuttgart > Handelsregisternummer HRB 214620 > UStID-Nr. DE 147861123 > > Diese Nachricht (und zugehörige Dateien) ist ausschließlich für die > Verwendung von rssh-discuss@lists.sourceforge.net bestimmt und enthält > möglicherweise Informationen, die vertraulich sind, dem Urheberrecht > unterliegen oder ein Geschäftsgeheimnis darstellen. Wenn Ihre E-Mail-Adresse > nicht rssh-discuss@lists.sourceforge.net lautet, informieren wir Sie hiermit, > dass das Verbreiten, Kopieren oder Verteilen dieser Nachricht oder evtl. > zugehöriger Dateien strengstens untersagt ist. Falls Sie diese Nachricht > irrtümlicherweise erhalten haben, löschen Sie sie, und benachrichtigen Sie > uns bitte umgehend, indem Sie eine Antwort senden. Sämtliche aufgeführten > Ansichten oder Meinungen sind ausschließlich diejenigen der Autorin / des > Autors m.grassin...@sommerelectronic.com und entsprechen nicht > notwendigerweise denen des Unternehmens. > > -----Ursprüngliche Nachricht----- > > Von: p cooper [mailto:pdcoo...@blueyonder.co.uk] > Gesendet: Freitag, 8. April 2011 14:07 > An: rssh-discuss@lists.sourceforge.net > Betreff: [Spam Fuzzy] cant scp with /bin/rssh shell, can with /bin/sh > > says it all really. Server = ubuntu server. Im testing it from my LAN. > > > Ive added a user , and given them a home directory > ive installed rssh > ive setup public/private key authentication > > when the server shell is /bin/sh , passwordless scp file transfer works, > but when the shell is /bin/rssh , it asks me for a password > > > $ cat /etc/rssh.conf | grep -v '#' > logfacility = LOG_USER > allowscp > allowrsync > umask = 022 > > if the server config is this > > $ cat /etc/passwd | grep remot > remoteBackup:1004:1003::/home/remoteBackup:/bin/sh > server2@server2:~$ > > i can > nine@nine:~$ scp -P22 -i /tmp/rem_b_id_rsa /tmp/file > remoteBackup@server:/home/remoteBackup > file 100% 7 0.0KB/s 00:00 > nine@nine:~$ > > if i change it to > Quote: > $ cat /etc/passwd | grep remot > remoteBackup:1004:1003::/home/remoteBackup:/bin/rssh > server2@server2:~$ > > I get > nine@nine:~$ scp -P22 -v -i /tmp/rem_b_id_rsa /tmp/file > remoteBackup@server2:/home/remoteBackup > Executing: program /usr/bin/ssh host server2, user remoteBackup, command > scp -v -t /home/remoteBackup > OpenSSH_5.3p1 Debian-3ubuntu6, OpenSSL 0.9.8k 25 Mar 2009 > debug1: Reading configuration data /etc/ssh/ssh_config > debug1: Applying options for * > debug1: Applying options for server2 > debug1: Connecting to server2 [192.168.2.20] port 22. > debug1: Connection established. > debug1: identity file /tmp/rem_b_id_rsa type -1 > debug1: Remote protocol version 2.0, remote software version > OpenSSH_5.5p1 Debian-4ubuntu5 > debug1: match: OpenSSH_5.5p1 Debian-4ubuntu5 pat OpenSSH* > debug1: Enabling compatibility mode for protocol 2.0 > debug1: Local version string SSH-2.0-OpenSSH_5.3p1 Debian-3ubuntu6 > debug1: SSH2_MSG_KEXINIT sent > debug1: SSH2_MSG_KEXINIT received > debug1: kex: server->client aes128-ctr hmac-md5 none > debug1: kex: client->server aes128-ctr hmac-md5 none > debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent > debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP > debug1: SSH2_MSG_KEX_DH_GEX_INIT sent > debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY > debug1: Host 'server2' is known and matches the RSA host key. > debug1: Found key in /home/nine/.ssh/known_hosts:9 > debug1: ssh_rsa_verify: signature correct > debug1: SSH2_MSG_NEWKEYS sent > debug1: expecting SSH2_MSG_NEWKEYS > debug1: SSH2_MSG_NEWKEYS received > debug1: SSH2_MSG_SERVICE_REQUEST sent > debug1: SSH2_MSG_SERVICE_ACCEPT received > debug1: Authentications that can continue: publickey,password > debug1: Next authentication method: publickey > debug1: Offering public key: n...@nine.home.nw > debug1: Authentications that can continue: publickey,password > debug1: Trying private key: /tmp/rem_b_id_rsa > debug1: read PEM private key done: type RSA > debug1: Authentications that can continue: publickey,password > debug1: Next authentication method: password > remoteBackup@server2's password: > > > where is the problem ? > > ------------------------------------------------------------------------------ > Xperia(TM) PLAY > It's a major breakthrough. An authentic gaming > smartphone on the nation's most reliable network. > And it wants your games. > http://p.sf.net/sfu/verizon-sfdev > _______________________________________________ > rssh-discuss mailing list > rssh-discuss@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/rssh-discuss > > ------------------------------------------------------------------------------ > Xperia(TM) PLAY > It's a major breakthrough. An authentic gaming > smartphone on the nation's most reliable network. > And it wants your games. > http://p.sf.net/sfu/verizon-sfdev > _______________________________________________ > rssh-discuss mailing list > rssh-discuss@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/rssh-discuss ------------------------------------------------------------------------------ Xperia(TM) PLAY It's a major breakthrough. An authentic gaming smartphone on the nation's most reliable network. And it wants your games. http://p.sf.net/sfu/verizon-sfdev _______________________________________________ rssh-discuss mailing list rssh-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rssh-discuss