Hey #Linux friends (and enemies) I have a weird #SSH question.
If I try to SSH into a server, I get a timeout. If I try to SCP some files to it, it works!
What's going on?
The server has an entry in ~/ssh/config
This fails: ssh server
This works: scp text.txt server:/path/
Can any shed some light on why one works and the other doesn't?
mhoye
in reply to Terence Eden • • •Terence Eden
in reply to mhoye • • •Terence Eden
in reply to mhoye • • •Here's the -vvvvv output.
Nothing obvious I can see. It authenticates, connects, then hangs.
silverwizard
in reply to Terence Eden • •@Terence Eden @mhoye @FuzzFace ☢️ :clippy: does the user have a shell?
can you try
ssh server /bin/sh
?Terence Eden
in reply to silverwizard • • •@silverwizard Yes, there is a shell. I can usually log in after a few minutes.
I'm trying to work out why ssh hangs while scp can transfer files.
silverwizard
in reply to Terence Eden • •@Terence Eden yeah, I just often see a hang when my shell is missing. If it can login after a few minutes that's .... weirder.
Those ignored envs seem odd.