You are not logged in.
I am running a few servers using Arch. As firewall I am using shorewall. Everything works fine except that i cannot use scp to transfer files. I get this message:
foppe pts/0 Wed Aug 20 13:58 still logged in 193.13.xxx.xxx
Shorewall is configured to allow ssh and some other services but scp doesnt seem to work.
Isnt scp only using port 22?
Any idea how to solve this problem?
/F
Last edited by zyrax (2008-08-21 19:38:11)
Offline
The only problems I ever had were fixed by enabling SSH in HOSTS_ALLOW.
Offline
From your message I gather that regular ssh is working so TCP Wrappers must be configured correctly (hosts.allow).
What is the command you are typing for the transfer? (redact it as needed)
Offline
scp uses port 115 (sftp)
Offline
I tried opening port 115 as well but still the same problem.
quad - foppe ~ $ scp test.jpg www.respansiv.se:
The authenticity of host 'www.respansiv.se (193.13.137.30)' can't be established.
RSA key fingerprint is 02:7d:6b:ae:6a:97:98:2e:e4:90:8b:7c:2a:51:91:a5.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'www.respansiv.se' (RSA) to the list of known hosts.
foppe@www.respansiv.se's password:
foppe pts/7 Thu Aug 21 17:16 still logged in 193.13.137.254
quad - foppe ~ $
/F
Offline
scp uses port 115 (sftp)
Um, no. scp runs over port 22, just like ssh (at least by default). You can verify this by starting up an scp and separately running "netstat -tn".
Offline
To the OP, it looks like the config on the destination machine has been set so that it runs "last" instead of a shell when you log in. Could your shell have been accidentally set to /usr/bin/last ? Could someone have linked your shell binary to /usr/bin/last ? What happens when you try to ssh?
Offline
Ahh! Thankyou tam1138. I now officially offer you a cyberbeer...
/usr/bin/last was run in .bashrc to show the last logins on the server. Had no idea that it had this effect to scp.
Thankyou again.
/F
Offline