LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-31-2011, 09:28 AM   #1
Nukeman
LQ Newbie
 
Registered: May 2011
Distribution: Ubuntu
Posts: 2

Rep: Reputation: Disabled
Why can't I 'scp' from remote to local host?


I am having difficulty sending files from a remote machine to local one using
Code:
scp
. It is working the other way however. local > remote. I am using the verbose options
Code:
scp -v /directory/file local@192.168.X.X:/directory/file
and I am getting this output:

Code:
 Executing: program /usr/bin/ssh host 192.168.X.X, user ----, command scp -v -t -- /directory
OpenSSH_5.5p1 Debian-6, OpenSSL 0.9.8o 01 Jun 2010
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to 192.168.X.X [192.168.X.X] port 22.
debug1: connect to address 192.168.X.X port 22: Connection refused
ssh: connect to host 192.168.X.X port 22: Connection refused
lost connection
I wonder why this is? I have Googled my face off and read countless man pages and I am seriously stuck. If anybody could help that would great. Thanks.
 
Old 05-31-2011, 09:41 AM   #2
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: Disabled
Hello Nukeman, welcome to LQ,
Quote:
Originally Posted by Nukeman View Post
...
Code:
 Executing: program /usr/bin/ssh host 192.168.X.X, user ----, command scp -v -t -- /directory
OpenSSH_5.5p1 Debian-6, OpenSSL 0.9.8o 01 Jun 2010
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to 192.168.X.X [192.168.X.X] port 22.
debug1: connect to address 192.168.X.X port 22: Connection refused
ssh: connect to host 192.168.X.X port 22: Connection refused
lost connection
...
I think you didn't configure ssh properly, so the connection is refused. You should read in the Ubuntu-documentation about how to configure ssh properly, look for example here: http://manpages.ubuntu.com/manpages/..._config.5.html

Markus

Last edited by markush; 05-31-2011 at 09:43 AM.
 
Old 05-31-2011, 09:43 AM   #3
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390
Hi,

Code:
scp -v /directory/file local@192.168.X.X:/directory/file
Is the name of the user local?

You can use:
Code:
 scp /dir/file 192.168.1.1:/dir/file
or
Code:
scp /dir/file user@192.168.1.1:/dir/file
The first example assumes that the remote user is the same as the local user, the second one sets the specific user.

Hope thishelps.
 
Old 05-31-2011, 12:22 PM   #4
Nukeman
LQ Newbie
 
Registered: May 2011
Distribution: Ubuntu
Posts: 2

Original Poster
Rep: Reputation: Disabled
WOW! I figured it out i didn't install ssh onto my local desktop enviornment
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
SCP issues over SSH... can't seem to copy from remote to local. ncn8ochaser Linux - Newbie 3 11-18-2010 01:17 AM
[SOLVED] iptables redirect : local to remote public host paziulek Linux - Networking 2 05-17-2010 03:34 PM
SCP from remote to local?? abovenbeyond Linux - Newbie 1 06-04-2008 05:45 PM
setting-up an xserver connection with remote host through local firewall. schatoor Linux - Security 5 02-02-2006 11:11 AM
Forwarding local traffic to remote host: kernel development sl_king Programming 1 08-25-2005 07:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:14 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration