Logo Khaganat

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en:connexion_serveur_admin [2017/01/02 20:06] Domperssen:connexion_serveur_admin [2021/12/03 19:19] (current) – external edit 127.0.0.1
Line 4: Line 4:
 <WRAP center round important 60%> <WRAP center round important 60%>
 The manipulation here concerns a console connection from a Linux machine. The manipulation here concerns a console connection from a Linux machine.
-</ WRAP>+</WRAP>
  
 The advantage of connecting to a server using a public key is that you can forget the basic passwords of the servers, there is only one to remember: **yours**. This is very useful if you have several servers to administer, or if they have passwords to extend and impossible to remember. The advantage of connecting to a server using a public key is that you can forget the basic passwords of the servers, there is only one to remember: **yours**. This is very useful if you have several servers to administer, or if they have passwords to extend and impossible to remember.
Line 24: Line 24:
  
 **Copy the key to the remote server account** **Copy the key to the remote server account**
-   <code>ssh-copy-id -i ~ / .ssh / id_rsa.pub yyy@xxxxx.org</code>+   ssh-copy-id -i ~ / .ssh / id_rsa.pub yyy@xxxxx.org
  
 Replace ''yyy@xxxxx.org'' with the name of your server and it's user, for example ''root@myserver.org''. Enter the server password (NOT your key passphrase, the server must know that it is you!). Replace ''yyy@xxxxx.org'' with the name of your server and it's user, for example ''root@myserver.org''. Enter the server password (NOT your key passphrase, the server must know that it is you!).
  
 And now, it's all good! You can connect to the server via ssh with your key: And now, it's all good! You can connect to the server via ssh with your key:
-   <code>ssh yyy@xxxxx.org</code>+   ssh yyy@xxxxx.org
 or or
-   <code>ssh root@myserver.org</code>+   ssh root@myserver.org
  
 On the server, go to the .ssh folder of /home/user and On the server, go to the .ssh folder of /home/user and
Line 74: Line 74:
 </code> </code>
 ===== Log in without password(insecure method) ===== ===== Log in without password(insecure method) =====
-<WRAP center round important 60%>+<WRAP centeralign round important 80%>
 Logging in without a password potentially opens up a security vulnerability. To be reserved for very special cases! Logging in without a password potentially opens up a security vulnerability. To be reserved for very special cases!
 </WRAP> </WRAP>
Line 100: Line 100:
   * [[http://doc.fedora-fr.org/wiki/SSH_:_Authentification_par_cl%C3%A9|A more complete explanation of the ssh keys, in French.]]   * [[http://doc.fedora-fr.org/wiki/SSH_:_Authentification_par_cl%C3%A9|A more complete explanation of the ssh keys, in French.]]
  
-{{tag>Serveur Administration Sécurité}}+{{tag>Serveur Sysadmin Sécurité}}
CC Attribution-Share Alike 4.0 International Driven by DokuWiki
en/connexion_serveur_admin.1483384014.txt.gz · Last modified: 2021/12/03 19:18 (external edit)

Licences Mentions légales Accueil du site Contact