Loading...
 

ssh using keys

How to Create 4096bit long SSH protocol v2 key

Command in a console
 
ssh-keygen -b 4096 -f .ssh/id_rsa4096_mylabel -C myuser@mylabel_4096 -o -a 500


See
http://blog.patshead.com/2013/09/generating-new-more-secure-ssh-keys.html

Then you can connect through ssh indicating your private key in the command run at he terminal:

Command in a console
xxxxxxxxxx
 
ssh -i ~/.ssh/id_rsa4096_mylabel myuser@foo.example.com


Note for VHIR:
In order to reach a server through ssh behind a proxy, you need to set the server name at the .ssh/config as usual, plus indicate there the private keyfile that you want to use for the connection to that server. For instance:

contents of ~/.ssh/config
xxxxxxxxxx
3
 
1
Host *.example.com
2
    ProxyCommand corkscrew proxyserver port %h %p
3
    IdentityFile ~/.ssh/id_rsa4096_mylabel




Alias names for this page:
ssh | keys | amse

Image Seed: noun \ˈsēd\ : the beginning of something which continues to develop or grow

Knowledge seeds

Switch Language