Skip to content

Commit c743f0b

Browse files
committed
debugging: Update linux ssh instructions
linux now uses usermode networking by default, so the instructions to ssh into the VM need to be updated.
1 parent e21bf56 commit c743f0b

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

content/Debugging.md

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ With this following `ssh-config`, enter the VM. The IP can be found with `crc ip
1212
`~/.ssh/config`
1313
```ssh-config
1414
Host crc
15-
Hostname 192.168.130.11
15+
Hostname 127.0.0.1
16+
Port 2222
1617
User core
1718
IdentityFile ~/.crc/machines/crc/id_ecdsa
1819
IdentityFile ~/.crc/machines/crc/id_ed25519
@@ -21,17 +22,13 @@ Host crc
2122
2223
```
2324

24-
If you use vsock network mode, the IP is 127.0.0.1 and the port is 2222.
25+
If you use user network mode, the IP is 127.0.0.1 and the port is 2222.
26+
If you use system network mode on Linux, the IP is 192.168.130.1 and the port is 22.
2527
On Windows, the relevant SSH keys is in `C:\Users\%USERNAME%\.crc\machines\crc\id_ed25519`
2628

2729
You can also run directly this command:
2830

29-
#### Linux
30-
```bash
31-
$ ssh -i ~/.crc/machines/crc/id_ed25519 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null [email protected]
32-
```
33-
34-
#### MacOS
31+
#### Linux/macOS
3532
```bash
3633
$ ssh -i ~/.crc/machines/crc/id_ed25519 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -p 2222 [email protected]
3734
```
@@ -107,4 +104,4 @@ CONTAINER IMAGE
107104
```
108105

109106
> [!NOTE]
110-
> The first container started 15min ago where almost all containers started few hours ago. This is suspicious.
107+
> The first container started 15min ago where almost all containers started few hours ago. This is suspicious.

0 commit comments

Comments
 (0)