Skip to content

Commit 792a63e

Browse files
Update SSH examples to include root@ prefix
- Remove redundant examples without user prefix from ssh.ts help text - Add root@ prefix to all remaining SSH examples in ssh.ts and index.ts - Ensures consistency with documentation and reduces user confusion Co-authored-by: danieltaox <danieltaox@gmail.com>
1 parent edbe3bc commit 792a63e

2 files changed

Lines changed: 5 additions & 11 deletions

File tree

src/lib/nodes/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,13 @@ $ sf nodes set my-node-name --max-price 12.50
7171
$ sf nodes extend my-node-name --duration 3600 --max-price 12.50
7272
7373
\x1b[2m# SSH into a node's current VM\x1b[0m
74-
$ sf nodes ssh my-node-name
74+
$ sf nodes ssh root@my-node-name
7575
7676
\x1b[2m# View logs from a node's current VM\x1b[0m
7777
$ sf nodes logs my-node-name
7878
7979
\x1b[2m# SSH into a specific VM\x1b[0m
80-
$ sf nodes ssh user@vm_xxxxxxxxxxxxxxxxxxxxx
80+
$ sf nodes ssh root@vm_xxxxxxxxxxxxxxxxxxxxx
8181
8282
\x1b[2m# View logs from a specific VM\x1b[0m
8383
$ sf nodes logs -i vm_xxxxxxxxxxxxxxxxxxxxx

src/lib/nodes/ssh.ts

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,10 @@ const ssh = new Command("ssh")
3636
Examples:
3737
3838
\x1b[2m# SSH into a node's current VM\x1b[0m
39-
$ sf nodes ssh my-node
39+
$ sf nodes ssh root@my-node
4040
41-
\x1b[2m# SSH with a specific username\x1b[0m
42-
$ sf nodes ssh jenson@my-node
43-
44-
\x1b[2m# SSH directly to a VM ID\x1b[0m
45-
$ sf nodes ssh vm_xxxxxxxxxxxxxxxxxxxxx
46-
47-
\x1b[2m# SSH with username to a VM ID\x1b[0m
48-
$ sf nodes ssh huang@vm_xxxxxxxxxxxxxxxxxxxxx
41+
\x1b[2m# SSH with a specific username to a VM ID\x1b[0m
42+
$ sf nodes ssh root@vm_xxxxxxxxxxxxxxxxxxxxx
4943
`,
5044
)
5145
.action(async (destination, options) => {

0 commit comments

Comments
 (0)