File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff 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 ) )
Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments