Skip to content

Commit cc6907e

Browse files
committed
Merge pull request #262 from QuentinPerez/fix_#171
Fix #171
2 parents 42dbc1a + 548f310 commit cc6907e

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -1154,6 +1154,7 @@ $ scw inspect myserver | jq '.[0].public_ip.address'
11541154

11551155
### master (unreleased)
11561156

1157+
# Add a warn message when using `ssh exec` on host without public ip nor gateway ([#171](https://github.com/scaleway/scaleway-cli/issues/171))
11571158
* Support of `scw rmi` snapshot|volume ([#258](https://github.com/scaleway/scaleway-cli/issues/258))
11581159
* Match bootscript/image with the good architecture ([#255](https://github.com/scaleway/scaleway-cli/issues/255))
11591160
* Support of region/owner/arch in the cache file ([#255](https://github.com/scaleway/scaleway-cli/issues/255))

pkg/commands/exec.go

+4
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@ func RunExec(ctx CommandContext, args ExecArgs) error {
6666
}
6767
}
6868

69+
if server.PublicAddress.IP == "" && gateway == "" {
70+
log.Warn(`Your host has no public IP address, you should use '--gateway', see 'scw help exec'`)
71+
}
72+
6973
// --timeout
7074
if args.Timeout > 0 {
7175
log.Debugf("Setting up a global timeout of %d seconds", args.Timeout)

0 commit comments

Comments
 (0)