Aqui pueden ver el Tutorial.
Conexión SSH a MERRY GOING
Conexión SSH a GOING MERRY
Paso 0:
Poner lo siguiente en ~/.ssh/config:
Host merry_puente
User aosorio
HostName acceso.astroscu.unam.mx
IdentityFile ~/.ssh/id_ed25519
ServerAliveInterval 60
ServerAliveCountMax 720
HostKeyAlgorithms +ssh-ed25519
Host sombras
User sombras
HostName 10.0.17.178
ProxyJump merry_puente
IdentityFile ~/.ssh/id_ed25519
PubkeyAcceptedAlgorithms +ssh-ed25519
ServerAliveInterval 60
ServerAliveCountMax 720
HostKeyAlgorithms +ssh-rsa
Paso 1:
Crear llave en maquina local
ssh-keygen -t ed25519
pasar la llave a la maquina puente
cat .ssh/id_ed25519.pub | ssh merry_puente 'cat >> .ssh/authorized_keys'
ssh sombras "chmod 700 .ssh; chmod 640 .ssh/authorized_keys"
pasar la llave al Going Merry
cat .ssh/id_ed25519.pub | ssh sombras 'cat >> .ssh/authorized_keys'
ssh sombras "chmod 700 .ssh; chmod 640 .ssh/authorized_keys"
Paso 2:
ssh sombras
cd $SCRATCH
mkdir APELLIDO