Skip to content

Commit

Permalink
Merge pull request #14 from praveenkumar/update-pub-key
Browse files Browse the repository at this point in the history
Debugging: Update private key from id_ecdsa to id_ed25519
  • Loading branch information
praveenkumar authored Jan 8, 2025
2 parents 980d62f + 058ab8b commit fdf6cd5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions content/Debugging.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,31 +14,31 @@ With this following `ssh-config`, enter the VM. The IP can be found with `crc ip
Host crc
Hostname 192.168.130.11
User core
IdentityFile ~/.crc/machines/crc/id_rsa
IdentityFile ~/.crc/machines/crc/id_ecdsa
IdentityFile ~/.crc/machines/crc/id_ed25519
StrictHostKeyChecking no
UserKnownHostsFile /dev/null
```

If you use vsock network mode, the IP is 127.0.0.1 and the port is 2222.
On Windows, the relevant SSH keys is in `C:\Users\%USERNAME%\.crc\machines\crc\id_ecdsa`
On Windows, the relevant SSH keys is in `C:\Users\%USERNAME%\.crc\machines\crc\id_ed25519`

You can also run directly this command:

#### Linux
```bash
$ ssh -i ~/.crc/machines/crc/id_ecdsa -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null [email protected]
$ ssh -i ~/.crc/machines/crc/id_ed25519 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null [email protected]
```

#### MacOS
```bash
$ ssh -i ~/.crc/machines/crc/id_ecdsa -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -p 2222 [email protected]
$ ssh -i ~/.crc/machines/crc/id_ed25519 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -p 2222 [email protected]
```

#### Windows
```powershell
PS> ssh -i C:\Users\$env:USERNAME\.crc\machines\crc\id_ecdsa -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -p 2222 [email protected]
PS> ssh -i C:\Users\$env:USERNAME\.crc\machines\crc\id_ed25519 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -p 2222 [email protected]
```

## Checking the status of the VM
Expand Down

0 comments on commit fdf6cd5

Please sign in to comment.