https://wiki.cabal.mx/index.php?title=Comandos_de_la_terminal/ssh&feed=atom&action=historyComandos de la terminal/ssh - Historial de revisiones2024-03-29T09:25:09ZHistorial de revisiones para esta página en el wikiMediaWiki 1.32.1https://wiki.cabal.mx/index.php?title=Comandos_de_la_terminal/ssh&diff=6721&oldid=prevRrc en 02:17 18 nov 20142014-11-18T02:17:58Z<p></p>
<p><b>Página nueva</b></p><div>__NOTOC__<br />
* [[:#ssh | ssh]]<br />
<br />
== ssh ==<br />
<br />
<syntaxhighlight lang="bash"><br />
<br />
[root@pridd ~]# ssh<br />
usage: ssh [-1246AaCfgKkMNnqsTtVvXxYy] [-b bind_address] [-c cipher_spec]<br />
[-D [bind_address:]port] [-e escape_char] [-F configfile]<br />
[-I pkcs11] [-i identity_file]<br />
[-L [bind_address:]port:host:hostport]<br />
[-l login_name] [-m mac_spec] [-O ctl_cmd] [-o option] [-p port]<br />
[-R [bind_address:]port:host:hostport] [-S ctl_path]<br />
[-W host:port] [-w local_tun[:remote_tun]]<br />
[user@]hostname [command]<br />
<br />
[root@pridd ~]# rpm -qa | grep openssh<br />
openssh-server-6.2p2-3.2.mga4<br />
openssh-askpass-qt4-1.0.1-6.mga4<br />
openssh-6.2p2-3.2.mga4<br />
openssh-clients-6.2p2-3.2.mga4<br />
openssh-askpass-common-6.2p2-3.2.mga4<br />
<br />
[rrc@Llawyr ~]$ ssh priddwifi<br />
<br />
Bienvenido a Pridd.LinuxCabal.org<br />
Welcome to Pridd.LinuxCabal.org<br />
Soyez bienvenus a Pridd.LinuxCabal.org<br />
<br />
AVISO: Estamos supervisando su comportamiento<br />
WARNING: We are monitoring this connection<br />
AVERTISSEMENT: Nous controlons cette connexion<br />
<br />
El abuso no va a ser tolerado<br />
Abuse will NOT be tolerated<br />
L'abus ne sera pas tolere<br />
<br />
Password: <br />
Last login: Mon Nov 10 13:32:32 2014 from 192.168.51.56<br />
[rrc@pridd ~]$ <br />
<br />
[rrc@Llawyr ~]$ ssh usuario1@priddwifi<br />
<br />
Bienvenido a Pridd.LinuxCabal.org<br />
Welcome to Pridd.LinuxCabal.org<br />
Soyez bienvenus a Pridd.LinuxCabal.org<br />
<br />
AVISO: Estamos supervisando su comportamiento<br />
WARNING: We are monitoring this connection<br />
AVERTISSEMENT: Nous controlons cette connexion<br />
<br />
El abuso no va a ser tolerado<br />
Abuse will NOT be tolerated<br />
L'abus ne sera pas tolere<br />
<br />
Password: <br />
[usuario1@pridd ~]$ ls<br />
Mnt/ tmp/<br />
[usuario1@pridd ~]$ ^d<br />
Connection to priddwifi closed.<br />
[rrc@Llawyr ~]$ ssh usuario1@priddwifi "echo 'puedes ejecutar comandos sin entrar' > NuevoArchivo"<br />
<br />
Bienvenido a Pridd.LinuxCabal.org<br />
Welcome to Pridd.LinuxCabal.org<br />
Soyez bienvenus a Pridd.LinuxCabal.org<br />
<br />
AVISO: Estamos supervisando su comportamiento<br />
WARNING: We are monitoring this connection<br />
AVERTISSEMENT: Nous controlons cette connexion<br />
<br />
El abuso no va a ser tolerado<br />
Abuse will NOT be tolerated<br />
L'abus ne sera pas tolere<br />
<br />
Password: <br />
[rrc@Llawyr ~]$ ssh usuario1@priddwifi ls<br />
<br />
Bienvenido a Pridd.LinuxCabal.org<br />
Welcome to Pridd.LinuxCabal.org<br />
Soyez bienvenus a Pridd.LinuxCabal.org<br />
<br />
AVISO: Estamos supervisando su comportamiento<br />
WARNING: We are monitoring this connection<br />
AVERTISSEMENT: Nous controlons cette connexion<br />
<br />
El abuso no va a ser tolerado<br />
Abuse will NOT be tolerated<br />
L'abus ne sera pas tolere<br />
<br />
Password: <br />
Mnt<br />
NuevoArchivo<br />
tmp<br />
<br />
[rrc@Llawyr ~]$ ssh usuario1@priddwifi "cat NuevoArchivo"<br />
<br />
Bienvenido a Pridd.LinuxCabal.org<br />
Welcome to Pridd.LinuxCabal.org<br />
Soyez bienvenus a Pridd.LinuxCabal.org<br />
<br />
AVISO: Estamos supervisando su comportamiento<br />
WARNING: We are monitoring this connection<br />
AVERTISSEMENT: Nous controlons cette connexion<br />
<br />
El abuso no va a ser tolerado<br />
Abuse will NOT be tolerated<br />
L'abus ne sera pas tolere<br />
<br />
Password: <br />
Password: <br />
puedes ejecutar comandos sin entrar<br />
[rrc@Llawyr ~]$ <br />
<br />
[rrc@Llawyr ~]$ ssh usuario1@priddwifi xdemineur<br />
<br />
Bienvenido a Pridd.LinuxCabal.org<br />
Welcome to Pridd.LinuxCabal.org<br />
Soyez bienvenus a Pridd.LinuxCabal.org<br />
<br />
AVISO: Estamos supervisando su comportamiento<br />
WARNING: We are monitoring this connection<br />
AVERTISSEMENT: Nous controlons cette connexion<br />
<br />
El abuso no va a ser tolerado<br />
Abuse will NOT be tolerated<br />
L'abus ne sera pas tolere<br />
<br />
Password: <br />
<br />
</syntaxhighlight><br />
<br />
[[Archivo:XDemineur.png]]<br />
<br />
<syntaxhighlight lang="bash"><br />
<br />
[rrc@Llawyr ~]$ mysql -h 127.0.0.1 -p -D equipres -u rrc<br />
Enter password: <br />
ERROR 2003 (HY000): Can't connect to MySQL server on '127.0.0.1' (111)<br />
<br />
[rrc@Llawyr ~]$ ssh rrc@priddwifi -L 3306:127.0.0.1:3306 -N<br />
<br />
Bienvenido a Pridd.LinuxCabal.org<br />
Welcome to Pridd.LinuxCabal.org<br />
Soyez bienvenus a Pridd.LinuxCabal.org<br />
<br />
AVISO: Estamos supervisando su comportamiento<br />
WARNING: We are monitoring this connection<br />
AVERTISSEMENT: Nous controlons cette connexion<br />
<br />
El abuso no va a ser tolerado<br />
Abuse will NOT be tolerated<br />
L'abus ne sera pas tolere<br />
<br />
Password: <br />
^Z<br />
[1]+ Stopped ssh rrc@priddwifi -L 3306:127.0.0.1:3306 -N<br />
<br />
[rrc@Llawyr ~]$ bg<br />
[1]+ ssh rrc@priddwifi -L 3306:127.0.0.1:3306 -N &<br />
<br />
[rrc@Llawyr ~]$ mysql -h 127.0.0.1 -p -D equipres -u rrc<br />
Enter password: <br />
Welcome to the MariaDB monitor. Commands end with ; or \g.<br />
Your MariaDB connection id is 22<br />
Server version: 5.5.40-MariaDB Mageia MariaDB Server<br />
<br />
Copyright (c) 2000, 2014, Oracle, Monty Program Ab and others.<br />
<br />
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.<br />
<br />
MariaDB [equipres]> show tables;<br />
+--------------------+<br />
| Tables_in_equipres |<br />
+--------------------+<br />
| CatAreas |<br />
| Logs |<br />
| Usuarios |<br />
+--------------------+<br />
3 rows in set (0.00 sec)<br />
<br />
MariaDB [equipres]> <br />
<br />
[rrc@pridd ~]$ ssh -p 2222 -l rrc 192.168.51.130<br />
rrc@192.168.51.130's password: <br />
X11 forwarding request failed on channel 0<br />
u0_a108@falcon_umts:/ $ cd /sdcard<br />
u0_a108@falcon_umts:/sdcard $ ls<br />
Alarms<br />
Android<br />
Camera360<br />
DCIM<br />
Download<br />
Fusion<br />
Movies<br />
Music<br />
MusicPlayer<br />
Notifications<br />
Pictures<br />
Podcasts<br />
Ringtones<br />
RocketPlayer<br />
apusapps<br />
data<br />
dianxin<br />
libs<br />
org.thetomahawk<br />
<br />
</syntaxhighlight><br />
<br />
[[Category:Comandos de la terminal]]</div>Rrc