Skip to content

Latest commit

 

History

History
49 lines (31 loc) · 791 Bytes

File metadata and controls

49 lines (31 loc) · 791 Bytes

Generating the ssh keys

ssh-keygen -t rsa

Configuring the ssh client

Control the ssh client with ~/.ssh/config

Example below is to use older algorithms for older devices

Host 192.168.1.102
        user super
        KexAlgorithms +diffie-hellman-group14-sha1
        HostKeyAlgorithms +ssh-rsa

Copying ssh authorized key

  • By default the ssh-copy-id command will choose the ~/.ssh/.id_rsa.pub if it exists.
ssh-copy-id <user>@<host>

Running a ssh-agent

eval `ssh-agent`

echo $SSH_AGENT_SOCK

Add keys to agent

By default it will add the ~/.ssh/id_rsa and other id* keys to the agent.

ssh-add

ssh-add -l

Resources