Click to See Complete Forum and Search --> : File sharing


satimis
06-26-2007, 03:24 AM
Hi folks,

F-7 (router IP add:192.168.0.11)
Ubuntu desktop 7.04 (router IP add: 192.168.0.12)
scp
ssh


I need to transfer files between the above PCs. But the traffic is one way.

Ubuntu desktop 7.04
$ scp test.txt satimis@192.168.0.11:/path/to/dir
The authenticity of host '192.168.0.11 (192.168.0.11)' can't be established.
RSA key fingerprint is 73:01:8f:8b:ba:9d:b0:c0:8b:f2:36:e3:47:a6:0e:9e.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.0.11' (RSA) to the list of known hosts.
satimis@192.168.0.11's password:
test.txt 100% 18 0.0KB/s 00:00


File transferred.


F-7
$ scp test-1.txt satimis@192.168.0.12:/path/to/dir
ssh: connect to host port 22: Connection refused
lost connection



# cat /etc/ssh/ssh_config | grep Port
Port 22

Port 22 already uncommented.


Please help. TIA


B.R.
satimis

mrrangerman43
06-26-2007, 05:23 AM
Do you have a firewall/iptables running on one of the systems?

satimis
06-26-2007, 09:14 AM
Do you have a firewall/iptables running on one of the systems?
Hi mrrangerman43,

I forgot Ubuntu is a deskop box without openssh-server installed.

I solved my problem as follow;

On Ubuntu box ran;
$ sudo apt-get install openssl-server


On F-7 box;
$ scp file.tar.bz2 satimis@192.168.0.12:/path/to/dir
The authenticity of host '192.168.0.12 (192.168.0.12)' can't be established.
RSA key fingerprint is 9a:ca:e7:03:ac:9f:5c:53:ef:32:ba:17:1b:8f:67:31.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.0.12' (RSA) to the list of known hosts.
satimis@192.168.0.12's password:
file.tar.bz2 100% 20MB 4.9MB/s 00:04


B.R.
satimis

mrrangerman43
06-26-2007, 09:42 AM
Glad to hear you got it working! It's always a good feeling when you solve a problem on your own.

Somtimes it seems the more I learn about Linux, the less I know about Linux, boy if I could have just half the knowledge some of these guys have forgotten about Linux I'd be set.