AllSupported Logo AllSupported
Home How To Linux Search
  1. Home
  2. /
  3. ssh
  4. /
  5. Using ssh-copy-id with a custom remote port

Using ssh-copy-id with a custom remote port

By Tech Writer • July 2, 2014 • ssh
    ssh-copy-id -i ~/.ssh/id_rsa.pub "demo@demo.yourhost.com -p222"

 

 

ssh-copy-id -i ~/.ssh/id_rsa.pub "demo@demo.yourhost.com -p222"

Related Articles

Force Password Authentication with SSH

If you want to connect to a host by using a password instead of a public key you can use the following command to initiate a request. Note: This will...

Resolve Password Prompt with Encrypted Home Directory

If you are experiencing this issue read on for the official solution from Ubuntu. Encrypted Home Directory If you have an encrypted home directory, SS...

ssh key_read: uudecode failed

A couple things to check if you this type of error. The error is given by the client. So check your client know_hosts file. For additional debugging...

Ubuntu/Mint cannot login via ssh even after ssh-copy-id

Solution: This may be caused by a directive in the /etc/ssh/ssh_config file. To allow login with RSA key you need to uncomment the line: #   Iden...

SSH Public key failed authentication

  Set permissions with chmod 700 .ssh chmod 600 .ssh/authorized_keys  If find the following in your logs. sshd[28426]: error: Could not load host ke...

AllSupported

AllSupported

Expert tech support tutorials and guides for Linux, networking, and more.

Categories

  • Linux
  • How To
  • Networking

Resources

  • Search
  • RSS Feed
  • Sitemap

Legal

  • Privacy Policy
  • Terms of Use

© 2025 AllSupported. All rights reserved.