You are not logged in.

#1 2008-08-20 13:02:25

zyrax
Member
Registered: 2005-12-07
Posts: 12

Problem with scp [Solved]

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

#2 2008-08-21 04:40:03

thisllub
Member
From: Northern NSW Australia
Registered: 2007-12-28
Posts: 231

Re: Problem with scp [Solved]

The only problems I ever had were fixed by enabling SSH in HOSTS_ALLOW.

Offline

#3 2008-08-21 04:56:52

vyrixv
Member
From: Houston, TX
Registered: 2005-12-23
Posts: 15

Re: Problem with scp [Solved]

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

#4 2008-08-21 07:08:06

eXire
Member
Registered: 2006-08-08
Posts: 15

Re: Problem with scp [Solved]

scp uses port 115 (sftp)

Offline

#5 2008-08-21 17:45:12

zyrax
Member
Registered: 2005-12-07
Posts: 12

Re: Problem with scp [Solved]

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

#6 2008-08-21 19:20:29

tam1138
Member
Registered: 2007-09-10
Posts: 238

Re: Problem with scp [Solved]

eXire wrote:

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

#7 2008-08-21 19:23:47

tam1138
Member
Registered: 2007-09-10
Posts: 238

Re: Problem with scp [Solved]

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

#8 2008-08-21 19:37:45

zyrax
Member
Registered: 2005-12-07
Posts: 12

Re: Problem with scp [Solved]

Ahh! Thankyou tam1138. I now officially offer you a cyberbeer... wink

/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

Board footer

Powered by FluxBB