LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-16-2010, 05:25 AM   #1
anurupr
Member
 
Registered: Mar 2010
Posts: 71

Rep: Reputation: 16
i wanted to send a file from one system to another system using SCP


i tried using the scp command but it doesnt work. can anyone help me out ?
 
Old 03-16-2010, 05:33 AM   #2
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
How doesn't it work? Is there an error message?
 
Old 03-16-2010, 05:41 AM   #3
Sayan Acharjee
Member
 
Registered: Feb 2010
Location: Chennai, India
Distribution: Manjaro
Posts: 624

Rep: Reputation: 64
Post output of the command along with the command you have executed.
 
Old 03-19-2010, 04:32 PM   #4
anurupr
Member
 
Registered: Mar 2010
Posts: 71

Original Poster
Rep: Reputation: 16
cannot send file using scp from my system

im not able to send a file from my system to another system using scp
but a file can be sent from that system to my system. can anyone help me ?
this is the error that comes when i type the command

sudo scp file user@192.168.3.22:

ssh: connect to host 192.168.3.22 port 22: Connection refused
lost connection
 
Old 03-19-2010, 04:42 PM   #5
MrCode
Member
 
Registered: Aug 2009
Location: Oregon, USA
Distribution: Arch
Posts: 864
Blog Entries: 31

Rep: Reputation: 148Reputation: 148
Perhaps sshd isn't running on the other system? Can you ssh in?
 
Old 03-19-2010, 06:22 PM   #6
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Use "ssh -vv" to connect to the other system to provide debug information.

There are a number of possibilities:
  1. Other system is behind a nat router and ssh isn't being forwarded. The router is blocking the attempt.
  2. sshd isn't running on the other computer
  3. The permissions are to permissive on one end or the other for $HOME, $HOME/.ssh, $HOME/.ssh/id_rsa
  4. Allow Users is used and your account isn't listed

Last edited by jschiwal; 03-19-2010 at 06:25 PM.
 
Old 03-19-2010, 08:28 PM   #7
linuxpyro
Member
 
Registered: Apr 2004
Distribution: Gentoo
Posts: 134

Rep: Reputation: 16
'Connection Refused' sounds like a network thing of some sort. As others mentioned make sure sshd is running on the remote system, and make sure that it doesn't have a firewall running, or make sure port 22 is open.

You can get a better idea by using nmap. (First make sure it's installed on your machine.) Then try this in a terminal:

Code:
nmap -P0 -p 22 192.168.3.22
If it says the port is closed or filtered, it's probably a network problem.
 
Old 03-21-2010, 07:13 AM   #8
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place.

The posts from the two threads on the identical problem have been merged.
 
Old 03-21-2010, 08:22 AM   #9
framp
Member
 
Registered: Apr 2003
Location: Next to Stuttgart, Germany
Distribution: Debian, Mint, Raspbian
Posts: 131
Blog Entries: 5

Rep: Reputation: 27
Execute
Code:
netstat -tulpen|grep sshd
on your target box. If you don't get any output sshd is not up and running. Check /var/log/messages for sshd startup errors.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to send snmpwalk request from one system to another system tamilm Linux - Networking 1 02-10-2010 07:32 AM
cannot upload data using scp, Read-only file system ufmale Linux - Newbie 3 08-26-2008 11:46 PM
send system time to a file ust Linux - Newbie 3 08-15-2008 09:10 AM
feteching file from remote system using scp through a C programme. ravikumarv Programming 3 02-14-2008 01:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:01 AM.

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