Created
July 17, 2009 23:00
-
-
Save rduarte/149328 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
host site1 | |
user username_gigante | |
hostname sub.dominiosemnocao.com.br | |
host site2 | |
user username_maior_ainda | |
hostname sistemax.empresay.com.br |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ricardo@local:~$ ssh-keygen -t rsa | |
# Generating public/private rsa key pair. | |
# Enter file in which to save the key (/home/ricardo/.ssh/id_rsa): [ENTER] | |
# Enter passphrase (empty for no passphrase): [ENTER] | |
# Enter same passphrase again: [ENTER] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cd ~ | |
$ mkdir .ssh | |
$ chmod 700 .ssh/ | |
$ touch .ssh/authorized_keys | |
$ chmod 600 .ssh/authorized_keys |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Antes | |
ricardo@local:~$ ssh [email protected] | |
# Depois | |
ricardo@local:~$ ssh site1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment