LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   File sharing (https://www.linuxquestions.org/questions/linux-general-1/file-sharing-564523/)

satimis 06-26-2007 02:22 AM

File sharing
 
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
Code:

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
Code:

ssh: connect to host port 22: Connection refused
lost connection


# cat /etc/ssh/ssh_config | grep Port
Code:

  Port 22
Port 22 already uncommented.


Please help. TIA


B.R.
satimis

acid_kewpie 06-26-2007 02:24 AM

unrelated to networking. moved to linux - general.

SciYro 06-26-2007 03:03 AM

Possible firewall? Lack of a active server?

satimis 06-26-2007 08:16 AM

Quote:

Originally Posted by SciYro
Possible firewall? Lack of a active server?

Hi SciYro,

Lack of a active server - Correct.

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
Code:

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

Jeiku 06-27-2007 04:11 AM

Hi,

sshd isn't running on 192.168.0.12 or it's firewalled.

Try:

netstat -plant | grep 22

from 192.168.0.12, if you see 0.0.0.0:22 0.0.0.0:* LISTEN 3580/sshd or similar, it's probably firewalled - check your iptables rules.

If you get no output from the above netstat command, you need to start the sshd server on 192.168.0.12

Jeiku 06-27-2007 04:12 AM

whoops! Just saw that you solved it, sorry! :)


All times are GMT -5. The time now is 03:34 PM.