Gandi / gandi.cli

⚠ ARCHIVED - Command line interface to Gandi.net products using the public API
http://cli.gandi.net/
GNU General Public License v3.0
347 stars 62 forks source link

--port option for `vm ssh` #274

Closed fspin closed 5 years ago

fspin commented 5 years ago

I have configured my ssh in a custom port, so I'm not able to connect with the gandi.cli into my vm, because there is no such option (I've tried --port, -p and -P after ssh and none of them will let me pass the port I'm using). I get always a connection refused 'cause it's trying to ssh throuhg the default port (22).

Is there something I'm missing? Or is there a reason why isn't possible to change the port in the command line?

grigouze commented 5 years ago

@fspin Maybe you miss the the argument "args" of vm ssh command :)

You can try something like "gandi vm ssh ID -- -p SSH_PORT"

fspin commented 5 years ago

how did I missed that! Thanks @grigouze!