Closed gonzolively closed 8 months ago
I'm wondering if there is a problem resolving hosts with the port numbers (the ":"). We recently added the ability to have remotes with port numbers as part of their canonical name.
I think you're right. A quick fix would be to strip the port number from the hostname before running the command. This isn't necessarily great, but it should make it usable while still allowing separate ports to be used. Longer term, I think we'll need more changes around this, but they are somewhat dependent on the other ssh work that's being done right now.
I've looked into this more, and I think I was wrong with my initial assessment. Now that #300 has been created, I think this is more likely an issue with the way we resolve remotes. It's very possible that these functions did not expect a port number tacked onto the end of the canonical name. I'm going to investigate it more to see what a good fix would be.
Fixed in v0.7.0
Describe the bug When creating a remote session (and selecting a remote host) the host does not change to the selected host. When I go back and try to edit the connection I get an error that reads:
The only way I can successfully connect to the remote host is by issuing the
cr
command in the terminal: specificallycr vm
asvm
is my remote hostname.To Reproduce Steps to reproduce the behavior:
ubuntu@127.0.0.1:22022
)echo $HOSTNAME
and receiving the hostname of my local machine.Error: cannot resolve remote 'ubuntu@127.0.0.1:22022': not found
To Resolve
cr <connection_alias>
commandExpected behavior Upon starting a new tab and selecting the appropriate remote connection from the dropdown I expect to be connected to that host within a matter of seconds.
Screenshots
Desktop (please complete the following information):
Additional context The connection in the error exists in the connections tab and is a live and working connection. Not sure why it wouldn't find it.