# 22/TCP (SSH)

## Conexión a SSH usando clave privada

```shell
/<user>/.ssh/id_rsa
chmod 600 id_rsa
ssh -i id_rsa <user>@<IP-address>
```

## Corregir error de negociación de método de intercambio de claves

> Unable to negotiate with X.X.X.X port 22: no matching key exchange method found.

```shell
ssh -oKexAlgorithms=+<method> <user>@<IP-address>
ssh -oKexAlgorithms=+diffie-hellman-group1-sha1 <user>@<IP-address>
ssh -oKexAlgorithms=+diffie-hellman-group14-sha1 <user>@<IP-address>
ssh -oKexAlgorithms=+diffie-hellman-group-exchange-sha1 <user>@<IP-address>
```
