LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   help with scp (https://www.linuxquestions.org/questions/linux-newbie-8/help-with-scp-770990/)

7mza 11-23-2009 09:30 AM

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 ?

centosboy 11-23-2009 09:36 AM

Quote:

Originally Posted by 7mza (Post 3766783)
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/


All times are GMT -5. The time now is 03:54 AM.