Step 1: Create the RSA Key Pair:
In your computer:
ssh-keygen -t rsaStep 2: Store the Keys and Passphrase: (Optional, you car omit this pass with enter)
Enter file in which to save the key (/home/demo/.ssh/id_rsa):
Enter passphrase(empty for no passphrase):
Generating public/private rsa key pair. Enter file in which to save the key (/home/demo/.ssh/id_rsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /home/demo/.ssh/id_rsa. Your public key has been saved in /home/demo/.ssh/id_rsa.pub. The key fingerprint is: 4a:dd:0a:c6:35:4e:3f:ed:27:38:8c:74:44:4d:93:67 demo@a The key's randomart image is: +--[ RSA 2048]----+ | .oo. | | . o.E | | + . o | | . = = . | | = S = . | | o + = + | | . o + o . | | . o | | | +-----------------+Step 3: Copy the Public Key to the remote host (where you want to access without password):
In you computer:
ssh-copy-id <user>@<remote-host>Step 4: Try access to your remote host
In you computer:
ssh <user>@<remote-host>or with graphic interface:
ssh -X <user>@<remote-host>
No hay comentarios:
Publicar un comentario