LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-26-2007, 02:22 AM   #1
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Rep: Reputation: 56
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
 
Old 06-26-2007, 02:24 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
unrelated to networking. moved to linux - general.
 
Old 06-26-2007, 03:03 AM   #3
SciYro
Senior Member
 
Registered: Oct 2003
Location: hopefully not here
Distribution: Gentoo
Posts: 2,038

Rep: Reputation: 51
Possible firewall? Lack of a active server?
 
Old 06-26-2007, 08:16 AM   #4
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56
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
 
Old 06-27-2007, 04:11 AM   #5
Jeiku
Member
 
Registered: Jul 2005
Posts: 64

Rep: Reputation: 18
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
 
Old 06-27-2007, 04:12 AM   #6
Jeiku
Member
 
Registered: Jul 2005
Posts: 64

Rep: Reputation: 18
whoops! Just saw that you solved it, sorry!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
File Sharing megadeth Linux - Software 4 03-03-2005 09:53 PM
how to get primary logon network, Access control,File sharing & printer sharing info dileepkk Linux - Networking 2 07-06-2004 06:54 AM
File sharing and internet sharing mullet Linux - Networking 1 10-14-2003 01:30 PM
File Sharing Azain Linux - Newbie 14 05-26-2003 02:37 AM
file sharing i_is_cat Linux - Software 4 04-05-2003 06:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration