LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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, 09: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 09:32 AM.
 
Old 11-23-2009, 09: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



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-28-2008 11:41 PM
scp help akhil.mud Programming 6 04-14-2008 08:47 PM
How can I use scp Jzarecta Linux - Networking 6 04-15-2006 02:52 AM
SCP how to the_rhino Linux - Newbie 5 02-11-2005 07:50 PM
What is SCP? radam Linux - Software 2 07-20-2004 07:07 PM

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

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