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 • 1 min read

 

 

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 only work if your host allows the user you are tr

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, SSH cannot access your authorized_keys file becaus

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 try connecting to the host using verbose mode. i

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: #   IdentityFile ~/.ssh/id_rsa to    IdentityFile ~/.s

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 key: /etc/ssh/ssh_host_ed25519_key sshd[28426]: Auth

AllSupported

Your trusted source for tech support and tutorials.

Categories

  • How To (90)
  • Linux (35)
  • PHP (26)
  • Productivity (23)

Resources

  • About Us
  • Contact
  • RSS Feed

Connect

Stay updated with the latest tech support articles and tutorials.

© 2026 AllSupported. All rights reserved.