Ssh: Difference between revisions

From James's Wiki
No edit summary
No edit summary
Line 2: Line 2:


ssh-copy-id -i ~/.ssh/id_ecdsa.pub someuser@192.168.1.42
ssh-copy-id -i ~/.ssh/id_ecdsa.pub someuser@192.168.1.42
or
ssh-copy-id -i ~/.ssh/id_ecdsa.pub -p 1234 someuser@192.168.1.42


ssh-keygen -t ecdsa -b 521
ssh-keygen -t ecdsa -b 521

Revision as of 19:18, 24 February 2018

sudo nano /etc/sshd_config

ssh-copy-id -i ~/.ssh/id_ecdsa.pub someuser@192.168.1.42

or

ssh-copy-id -i ~/.ssh/id_ecdsa.pub -p 1234 someuser@192.168.1.42

ssh-keygen -t ecdsa -b 521


I stumbled across this...need to test it out:

Just define your non-standard ssh ports in ~/.ssh/config file like so:

Host 192.168.1.103
Port 1431

Now all ssh based tools will just work without any extra command line hassle.