Don't ask for SSH passphrases using keychain on Ubuntu (linux)

Passphraseless login using ssh-agent and ssh-add with SSH is a bit annoying, so it feels good to use keychain.

install keychain

sudo apt-get install keychain

Setting

Add the following settings to ~ / .bashrc and ~ / .zshrc.

/usr/bin/keychain $HOME/.ssh/id_rsa
source $HOME/.keychain/`hostname`-sh

You cannot register without a public key, so if you only have a private key, refer to How to generate a public key from an SSH private key and enter the public key. Generate.

Replace key names such as ʻid_rsa` as appropriate.

use

source .zshrc

Recommended Posts

Don't ask for SSH passphrases using keychain on Ubuntu (linux)
Notes for using TensorFlow on Bash on Ubuntu on Windows
Linux beginners create Ubuntu 16.04 environment on Docker (for Mac)-first half-
Introducing Python using pyenv on Ubuntu 20.04
Preparing python using vscode on ubuntu
Using a serial console on Ubuntu 20.04
Install confluent-kafka for Python on Ubuntu
pykintone on Windows Subsystem for Linux
Run Yocto on Ubuntu using QEMU.
Links for handling jupyter notebooks on Docker on Ubuntu on VirtualBox on macOS with SSH
Notes for installing Sublime Text on Ubuntu
[Note] Procedures for installing Ubuntu on Windows 10
Notes on using OpenCL on Linux on the RX6800
Run bootgen on Debian GNU / Linux, Ubuntu
How to install php7.4 on Linux (Ubuntu)
On Ubuntu Linux, set Tab to q
Compiling the Linux kernel (Linux 5.x on Ubuntu 20.04)