LinuxQuestions.org
Review your favorite Linux distribution.
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 11-23-2009, 10:30 AM   #1
7mza
Member
 
Registered: May 2008
Location: Jordan
Distribution: use fedora but prefer Slackware
Posts: 98

Rep: Reputation: 15
help with scp


hi , i always connect to my server using ssh on port 3333;
when am try to upload file using scp i use this command:
eg:
[root@Hamzah-PC Desktop]# scp fckeditor.tar.gz -P3333 username@mysite.com:/www/www-data/hamzah.ws/sites/all/modules/
but it give me this error
ssh: connect to host mysite.com port 22: Connection refused
lost connection

am trying connect to port 3333 , why it give me Connection refused on port 22 ?

Last edited by 7mza; 11-23-2009 at 10:32 AM.
 
Old 11-23-2009, 10:36 AM   #2
centosboy
Senior Member
 
Registered: May 2009
Location: london
Distribution: centos5
Posts: 1,137

Rep: Reputation: 116Reputation: 116
Quote:
Originally Posted by 7mza View Post
hi , i always connect to my server using ssh on port 3333;
when am try to upload file using scp i use this command:
eg:
[root@Hamzah-PC Desktop]# scp fckeditor.tar.gz -P3333 username@mysite.com:/www/www-data/hamzah.ws/sites/all/modules/
but it give me this error
ssh: connect to host mysite.com port 22: Connection refused
lost connection

am trying connect to port 3333 , why it give me Connection refused on port 22 ?
try

Code:
scp -P 3333 fckeditor.tar.gz  username@mysite.com:/www/www-data/hamzah.ws/sites/all/modules/
 
  


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 does not work and gives the following error message: scp: FATAL: Executing ssh1 i akay Linux - Networking 16 09-29-2008 12:41 AM
scp help akhil.mud Programming 6 04-14-2008 09:47 PM
How can I use scp Jzarecta Linux - Networking 6 04-15-2006 03:52 AM
SCP how to the_rhino Linux - Newbie 5 02-11-2005 08:50 PM
What is SCP? radam Linux - Software 2 07-20-2004 08:07 PM


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