Bonsoir,
j'ai créé une clé SSH sur mon pc (avec une passphrase).
J'ai copié la clé publique dans le manager OVH lors de la commande de mon nouveau serveur.
Lorsque le tape dans le terminal **ubuntu@ipserveur** je suis directement connecté au serveur :-(
Voici la config SSH avec ubuntu 18.04
Pourquoi ne demande t'il pas ma passphrase ?
Si je supprime le dossier .ssh de mon pc, je peux encore me connecter :-( pourquoi ?
# $OpenBSD: sshd_config,v 1.101 2017/03/14 07:19:07 djm Exp $
# This is the sshd server system-wide configuration file. See
# sshd_config(5) for more information.
# This sshd was compiled with PATH=/usr/bin:/bin:/usr/sbin:/sbin
# The strategy used for options in the default sshd_config shipped with
# OpenSSH is to specify options with their default value where
# possible, but leave them commented. Uncommented options override the
# default value.
#Port 22
#AddressFamily any
#ListenAddress 0.0.0.0
#ListenAddress ::
#HostKey /etc/ssh/ssh_host_rsa_key
#HostKey /etc/ssh/ssh_host_ecdsa_key
#HostKey /etc/ssh/ssh_host_ed25519_key
# Ciphers and keying
#RekeyLimit default none
# Logging
#SyslogFacility AUTH
#LogLevel INFO
# Authentication:
#LoginGraceTime 2m
#PermitRootLogin prohibit-password
#StrictModes yes
#MaxAuthTries 6
#MaxSessions 10
#PubkeyAuthentication yes
# Expect .ssh/authorized_keys2 to be disregarded by default in future.
#AuthorizedKeysFile .ssh/authorized_keys .ssh/authorized_keys2
#AuthorizedPrincipalsFile none
#AuthorizedKeysCommand none
#AuthorizedKeysCommandUser nobody
# For this to work you will also need host keys in /etc/ssh/ssh_known_hosts
#HostbasedAuthentication no
# Change to yes if you don't trust ~/.ssh/known_hosts for
# HostbasedAuthentication
#IgnoreUserKnownHosts no
# Don't read the user's ~/.rhosts and ~/.shosts files
#IgnoreRhosts yes
# To disable tunneled clear text passwords, change to no here!
PasswordAuthentication no
#PermitEmptyPasswords no
# Change to yes to enable challenge-response passwords (beware issues with
# some PAM modules and threads)
ChallengeResponseAuthentication no
# Kerberos options
#KerberosAuthentication no
#KerberosOrLocalPasswd yes
#KerberosTicketCleanup yes
#KerberosGetAFSToken no
# GSSAPI options
#GSSAPIAuthentication no
#GSSAPICleanupCredentials yes
#GSSAPIStrictAcceptorCheck yes
#GSSAPIKeyExchange no
# Set this to 'yes' to enable PAM authentication, account processing,
# and session processing. If this is enabled, PAM authentication will
# be allowed through the ChallengeResponseAuthentication and
# PasswordAuthentication. Depending on your PAM configuration,
# PAM authentication via ChallengeResponseAuthentication may bypass
# the setting of "PermitRootLogin without-password".
# If you just want the PAM account and session checks to run without
# PAM authentication, then enable this but set PasswordAuthentication
# and ChallengeResponseAuthentication to 'no'.
UsePAM yes
#AllowAgentForwarding yes
#AllowTcpForwarding yes
#GatewayPorts no
X11Forwarding yes
#X11DisplayOffset 10
#X11UseLocalhost yes
#PermitTTY yes
PrintMotd no
#PrintLastLog yes
#TCPKeepAlive yes
#UseLogin no
#PermitUserEnvironment no
#Compression delayed
#ClientAliveInterval 0
#ClientAliveCountMax 3
#UseDNS no
#PidFile /var/run/sshd.pid
#MaxStartups 10:30:100
#PermitTunnel no
#ChrootDirectory none
#VersionAddendum none
# no default banner path
#Banner none
# Allow client to pass locale environment variables
AcceptEnv LANG LC_*
# override default of no subsystems
Subsystem sftp /usr/lib/openssh/sftp-server
# Example of overriding settings on a per-user basis
#Match User anoncvs
# X11Forwarding no
# AllowTcpForwarding no
# PermitTTY no
# ForceCommand cvs server
Pourquoi n'y a t'il pas de mot de passe ?
Related questions
- Dimensionnement serveur MySQL
46496
07.11.2018 12:32
- [RESOLU] Connexion impossible en SSH
39042
05.06.2019 20:05
- Bonjour, Je n'est reçus aucun mot de passe root lors de mon achat!
34225
05.02.2018 20:47
- Gitlab private docker registry
34054
16.03.2018 13:05
- Ssh connection timed out port 22
33356
11.12.2019 08:21
- Configuration IP failover avec netplan (Ubuntu 17.10)
32910
12.01.2018 23:23
- Problème connexion ssh
32539
04.02.2018 09:46
- IP Failover sur Debian 9
32254
18.11.2016 20:40
- Instance Public Cloud en "error"
30061
15.12.2025 10:04
- Connexion OpenStack Swift Object Storage
25838
11.04.2019 10:09
la passphrase est sur la clé privée sur **ton pc.**
ubuntu? elle est alors prise en charge par gnome keyring.
ou sinon il faut gérer les clés avec ssh-add, qui retient par défaut la clé en mémoire le temps de la session
merci oui effectivement la clé est en mémoire
J'ai une autre question concernant la clé. Lorsque je créé une instance public cloud, j'ajoute ma clé publique. Si je souhaite la modifier, le champ est grisé. Comment la modifier dans le manager ?
ah dsl, je passe, aucune expérience avec ça
par contre je la changerais dans `~/.ssh/authorized_keys`, manuellement, en ssh.
et là ça marche, même si pas documenté ou pas dans le manager
oui j'
oui j'ai testé. Mais si je change le nom de la clé, l'ancien nom reste dans le manager
je sais pas jamais passé par le manager
dsl encore une question, je découvre le public cloud. Si je créé une instance et que je lui donne le nom www.domaine.com lorsque je me connecte il affiche ubuntu@www
pourquoi ne met il pas le nom complet ?
Bonjour,
dans le manager il faut re-créer une clé.
OVH semble empêcher la modification d'une clé pour la rendre inopérante.
Note : changer la clé dans le manager ne la changera PAS sur l'instance ou VPS ou dédié.
Cordialement, janus57
ok, mais si je restaure un snapshot, il ajoutera la clé du manager
Bonjour,
Si c'est une question je dirais également que la réponse est non vu qu'un snapshot c'est les données de votre VPS, y compris les clés installé.
Cordialement, janus57
je viens de testé et c'est oui. La clé du snapshot est présente mais il ajoute aussi la clé liée à l'instance