Linux
HOGENT toegepaste informatica
Thomas Parmentier, Andy Van Maele, Bert Van Vreckem
2024-2025
Verbinden met een remote server, via URL of IP-adres
$ ssh <URL> | <IP-address>
$ ssh remote.hogent.be | 192.168.76.254
Login naam toevoegen:
$ ssh -l <login name> 192.168.76.254
$ ssh <login name>@192.168.76.254
$ ssh -l vagrant 192.168.76.254
$ ssh vagrant@192.168.76.254
debug1: Authentications that can continue: publickey,password
/etc/shadow
ssh-keygen
, e.g.RSA keys are not deprecated; SHA-1 signature scheme is!
Gevolgen:
Keypairs anno 2022: rsa-sha2-256/512, ssh-ed25519, ECDSA
$ ls .ssh/
authorized_keys id_ecdsa id_ecdsa.pub known_hosts
fingerprint
van elke server waarmee je al
verbonden was(perm 600)
$ ls /etc/ssh/
$ ls /etc/ssh/ | grep config
ssh_config
sshd_config
Configuratie van de server daemon: sshd_config
Configuratie van de client opties: ssh_config
$ ssh -p 2222 osboxes@localhost
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the ED25519 key sent by the remote host is
SHA256:WaS4xm8g/lJFkWsUTw3mLF0FqiDOqolH2Sn1nNUwLtM.
Please contact your system administrator.
Add correct host key in /home/bert/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /home/bert/.ssh/known_hosts:14
Host key for [localhost]:2222 has changed and you have requested strict checking.
Host key verification failed.