LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-15-2010, 02:13 AM   #1
HariharanV
Member
 
Registered: Aug 2010
Posts: 49

Rep: Reputation: 0
SCP error "lost connection"


Hi All,
Am new to linux,when i am scp i got the following error

[root@linux3-hkg ~]# scp -P ***** httpd-HK-15-09-2010-tar.gz peritustec@***.**.***.*:
ssh: connect to host ***.**.***.* port *****: Connection timed out
lost connection

can any one guide me to solve this problem.

thanks
hariharan.v
 
Old 09-15-2010, 02:25 AM   #2
eco
Member
 
Registered: May 2006
Location: BE
Distribution: Debian/Gentoo
Posts: 412

Rep: Reputation: 48
did you forget to put a destination? Add a tild at the end of the command for home dir.

Code:
[root@linux3-hkg ~]# scp -P ***** httpd-HK-15-09-2010-tar.gz peritustec@***.**.***.*:~
you could use the '-vvv' for verbose to get more information on the problem or try the same with rsync.

Do you get a prompt? Can you ssh the host? We need a bit more info.

Last edited by eco; 09-15-2010 at 02:28 AM.
 
Old 09-15-2010, 02:59 AM   #3
sem007
Member
 
Registered: Nov 2006
Distribution: RHEL, CentOS, Debian Lenny, Ubuntu
Posts: 638

Rep: Reputation: 113Reputation: 113
Quote:
Originally Posted by HariharanV View Post
Hi All,
Am new to linux,when i am scp i got the following error

[root@linux3-hkg ~]# scp -P ***** httpd-HK-15-09-2010-tar.gz peritustec@***.**.***.*:
ssh: connect to host ***.**.***.* port *****: Connection timed out
lost connection

can any one guide me to solve this problem.

thanks
hariharan.v
Is there any firewall between server and client? Allow port in firewall and if you are using port forwarding check policy of that.

Are you able to access server via ssh?

Regards,
 
Old 09-15-2010, 08:01 AM   #4
Hariharan
Member
 
Registered: Nov 2004
Location: Bangalore
Posts: 64

Rep: Reputation: 0
Hi,
i can ping that ip,ssh.
and i give the destination also but it show the same error.

How can i check -vvv?
 
Old 09-15-2010, 09:29 AM   #5
sem007
Member
 
Registered: Nov 2006
Distribution: RHEL, CentOS, Debian Lenny, Ubuntu
Posts: 638

Rep: Reputation: 113Reputation: 113
Quote:
Originally Posted by Hariharan View Post
Hi,
i can ping that ip,ssh.
and i give the destination also but it show the same error.

How can i check -vvv?
ok check -vvv option as suggested by eco

Code:
scp -vvv -P ***** httpd-HK-15-09-2010-tar.gz peritustec@***.**.***.*:~
it will display debug inso on terminal. look that debug info to find out cause and if it possible post here.

Regards,
 
Old 09-16-2010, 02:06 AM   #6
HariharanV
Member
 
Registered: Aug 2010
Posts: 49

Original Poster
Rep: Reputation: 0
Hi,
This is what i am getting......

[root@localhost ~]# scp -vvv -P ***** httpd-JP-15-09-2010-tar.gz peritustec@***.**.***.*:~
Executing: program /usr/bin/ssh host ***.**.***.*, user peritustec, command scp -v -t ~
OpenSSH_4.5p1, OpenSSL 0.9.8b 04 May 2006
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to ***.**.***.* [***.**.***.*] port *****.
debug1: connect to address ***.**.***.* port *****: Connection timed out
ssh: connect to host ***.**.***.* port *****: Connection timed out
lost connection
[root@localhost ~]#
 
Old 09-16-2010, 02:46 AM   #7
sem007
Member
 
Registered: Nov 2006
Distribution: RHEL, CentOS, Debian Lenny, Ubuntu
Posts: 638

Rep: Reputation: 113Reputation: 113
Quote:
Originally Posted by HariharanV View Post
Hi,
This is what i am getting......

[root@localhost ~]# scp -vvv -P ***** httpd-JP-15-09-2010-tar.gz peritustec@***.**.***.*:~
Executing: program /usr/bin/ssh host ***.**.***.*, user peritustec, command scp -v -t ~
OpenSSH_4.5p1, OpenSSL 0.9.8b 04 May 2006
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to ***.**.***.* [***.**.***.*] port *****.
debug1: connect to address ***.**.***.* port *****: Connection timed out
ssh: connect to host ***.**.***.* port *****: Connection timed out
lost connection
[root@localhost ~]#
It seems to firewall/NAT problem.
Are your server in same network of are you access sever via internet? check port forwarding or allow port/network policy on firewall if is there any firewall/NAT device.

Regards,
 
  


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 "lost connection" retry carlh Linux - Newbie 4 07-16-2009 05:01 AM
anybody familiar with this error "Xlib: connection to ":0.0" refused by server" ? rajnivanza Linux - Newbie 3 03-22-2009 06:10 PM
"Anaconda" and "mini-wm" lost connection to display :1.0;??? cbrittain Fedora - Installation 2 03-14-2004 12:22 PM
"Anaconda" and "mini-wm" lost connection to display :1.0;??? cbrittain Linux - General 0 02-24-2004 06:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:37 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