You are not logged in.
Hi,
In gnome when i try to mount a remote server over ssh ( using places -> connect to server) i can create the mount point, however when i try to open the folder and it prompts me for a password, it won't accept it! (and continually prompts me for the password again).
I can ssh in fine to the same server through the command line, i think i have put the correct entries in hosts.allow
sshd: 192.168.0.
sshd: 134.7.
sftp: 192.168.0.
sftp: 134.7.
sftp-server: 192.168.0.
sftp-server: 134.7.
when i attempt to connect to my remote server the auth.log files on the remote server report the following:
Sep 21 12:31:20 arch sshd[13829]: Accepted password for rob from 134.7.220.22 port 54098 ssh2
Sep 21 12:31:20 arch sshd(pam_unix)[13831]: session opened for user rob by (uid=0)
Sep 21 12:31:21 arch sshd[13831]: subsystem request for sftp
Sep 21 12:31:21 arch sshd(pam_unix)[13831]: session closed for user rob
any ideas? cos i'm stumped
Offline
Nevermind i figured it out. In case anyone else has the same problem here's the solution.
Don't put any "echo" statements or for that matter anything that puts output to the stdout within your .bashrc .cshrc .profile etc. It causes problems with ssh when it tries to authenticate (due to the message handling between client and server)
In short, if you want to have fancy output when a user logs in you will need to have them conditionally wrapped to make sure it's an interactive shell and not a mindless one like for sftp. For .cshrc something like this would still work
if ($?prompt)
echo "Welcome, the date is " date
endif
Offline