Configurar cliente SSH en CenTos

En un anterior articulo ya vimos como instalar un servidor ssh, en este veremos como instalar el servicio del cliente.

 

Instalar SSH Cliente:

[root@cliente ~]# yum -y install openssh-clients

 

Conectamos al servidor ssh con nuestro usuario cliente:

# ssh [username@(hostname or IP address)]
[root@cliente ~]# ssh cent@tuserver

The authenticity of host 'dlp.srv.world (<no hostip for proxy command>)' can't be established.
ECDSA key fingerprint is xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:60:90:d8.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'tuserver' (ECDSA) to the list of known hosts.
cent@tuserver password: # password of the user

[cent@tuserver ~]$ # just logined

 

Podrás ejecutar cualquier comando desde tu usuario:

# for example, execute "cat /etc/passwd"
[cent@cliente ~]$ ssh cent@tuserver "cat /etc/passwd"

cent@tuserver password:
root:x:0:0:root:/root:/bin/bash
bin:x:1:1:bin:/bin:/sbin/nologin
...
...
postfix:x:89:89::/var/spool/postfix:/sbin/nologin
sshd:x:74:74:Privilege-separated SSH:/var/empty/sshd:/sbin/nologin

 

 

Agregar comentario