The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

More details about scp command

Discussion in 'General Discussion' started by Servbah, Aug 31, 2011.

  1. Servbah

    Servbah Registered

    Joined:
    Dec 6, 2010
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Hi,

    I have a server A and Server B , i would like to transfer the daily backup created recently from server A to server B some where in server B.

    I have used this command

    scp -P 2200 cpmove-[username].tar.gz root@1.1.1.1:/home/

    I changed ip and port as my default port is not 22 , am getting

    Connection timed out
    lost connection

    Any thing wrong in my command? Hope some one help
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,724
    Likes Received:
    660
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    The command you are using is correct if SSH runs on port 2200 on the destination server. There are firewall rules in place, or SSH is running on another port on the destination server based on the error message you are receiving.

    Thank you.
     
Loading...

Share This Page