scp with password

Discussion in 'Technical' started by knowram, Mar 5, 2007.

  1. knowram

    knowram New Member

    Is there anyway to add a password into the scp command string?
    something like.

    scp file [email protected] password location
  2. martinfst

    martinfst ISPConfig Developer ISPConfig Developer

    If you don't want to enter password, you will need to use keys. Use ssh-keygen to create a private/public key pair, copy the public part to the destination server ($HOME/.ssh/authorized_keys) and there you go: no more password typing.
  3. falko

    falko Super Moderator ISPConfig Developer

Share This Page