ssh-keyscan
Get the public ssh keys of remote hosts. More information: <https://man.openbsd.org/ssh-keyscan>.
Install
- All systems
-
curl cmd.cat/ssh-keyscan.sh
- Debian
-
apt-get install openssh-client - Ubuntu
-
apt-get install openssh-client -
Alpine
-
apk add openssh - Arch Linux
-
pacman -S openssh - Kali Linux
-
apt-get install openssh-client - CentOS
-
yum install openssh-clients - Fedora
-
dnf install openssh-clients - Windows (WSL2)
-
sudo apt-get updatesudo apt-get install openssh-client - OS X
-
brew install openssh - Raspbian
-
apt-get install openssh-client - Docker
-
docker run cmd.cat/ssh-keyscan ssh-keyscanpowered by Commando
Get the public ssh keys of remote hosts. More information: <https://man.openbsd.org/ssh-keyscan>.
-
Retrieve all public ssh keys of a remote host:
ssh-keyscan host -
Retrieve all public ssh keys of a remote host listening on a specific port:
ssh-keyscan -p port host -
Retrieve certain types of public ssh keys of a remote host:
ssh-keyscan -t rsa,dsa,ecdsa,ed25519 host -
Manually update the ssh known_hosts file with the fingerprint of a given host:
ssh-keyscan -H host >> ~/.ssh/known_hosts
© tl;dr; authors and contributors