VPS-old - Problème modification SSH
... / Problème modification SSH
BMPCreated with Sketch.BMPZIPCreated with Sketch.ZIPXLSCreated with Sketch.XLSTXTCreated with Sketch.TXTPPTCreated with Sketch.PPTPNGCreated with Sketch.PNGPDFCreated with Sketch.PDFJPGCreated with Sketch.JPGGIFCreated with Sketch.GIFDOCCreated with Sketch.DOC Error Created with Sketch.
Frage

Problème modification SSH

Von
PatrickA26
Erstellungsdatum 2018-03-17 14:42:53 (edited on 2024-09-04 13:15:35) in VPS-old

Bonjour,

Je suis sur un VPS 2018 SSD 3
J'ai fait une erreur dans mon fichier sshd_config ce qui fait que je ne peux plus me connecter en ssh
J'ai lancé le mode rescue pour corriger cette erreur
Le soucis est que je n'arrive pas à trouvé ce fichier

J'ai fait un mount /dev/sda /mnt
mais dans /mnt/etc/ssh/sshd_config je ne trouve la ligne que j'ai ajouté

Est-ce que le sda est bien le disque syteme

Disk /dev/sdb: 80 GiB, 85899345920 bytes, 167772160 sectors
Disk model: QEMU HARDDISK
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x961fcb1c

Device Boot Start End Sectors Size Id Type
/dev/sdb1 * 2048 167772126 167770079 80G 83 Linux


Disk /dev/sda: 2.5 GiB, 2621440000 bytes, 5120000 sectors
Disk model: QEMU HARDDISK
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xe9c3113a

Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 5117951 5115904 2.5G 83 Linux

Merci pour votre aide


1 Antwort ( Latest reply on 2021-04-23 09:27:09 Von
PatrickA26
)


/dev/sdb1 * 2048 167772126 167770079 80G 83 Linux


ça c'est votre disque Linux.

Quand vous l'aurez monté dans /mnt, votre fichier se trouvera dans **/mnt**/etc/ssh/sshd_config

puis avant de rebooter, démontez votre disque:
cd / && umount /mnt

c'est bon je viens d'y arriver

merci quand même