vast-ai / vast-python

Vast.ai python and cli api client
MIT License
117 stars 44 forks source link

`vastai ssh-url` shouldn't generate port in the new line. #75

Closed kenorb closed 8 months ago

kenorb commented 9 months ago

Not sure why, but when running ssh-url, it prints port in the separate new line? Is this expected?

$ vastai ssh-url 123123
ssh://root@123.123.123.123
:123213

I'd like to connect to instance as ssh $(vastai ssh-url 123123), but the new line breaks the syntax.

kenorb commented 8 months ago

Not sure what's changed, but it seems to work now. Maybe it was fixed on the API side.