ssh-copy-id using a different/custom port

Have you ever created your own cloud server and changed your ssh port from the default 22 to something else? And have you ever tried to use ssh-copy-id to copy your local ssh public key to the remote and it doesn't work?

The answer is simple. There are no parameters that you can provide for ssh-copy-id command. Instead do the following:

ssh-copy-id -i " -p 12345"
That's it. It should work without a problem. 


Popular Posts

Update requires a valid UpdateCommand when passed DataRow collection with modified rows

ToolTip and "Cannot access a disposed object" exception

Finding whether its Design Mode or Runtime Mode in VB.NET