You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
`Error: cannot resolve remote 'ubuntu@127.0.0.1:22022': not found`
The only way I can successfully connect to the remote host is by issuing the cr command in the terminal: specifically cr vm as vm is my remote hostname.
To Reproduce
Steps to reproduce the behavior:
Click "+" to start a new tab
Select remote host from the dropdown menu (in my case, ubuntu@127.0.0.1:22022)
Discover/verify that you are NOT on the desired host. I confirmed by issuing echo $HOSTNAME and receiving the hostname of my local machine.
Try editing the connection by clicking the elipses and once again selecting the remote host.
DIscover the error , Error: cannot resolve remote 'ubuntu@127.0.0.1:22022': not found
To Resolve
Issue cr <connection_alias> command
Expected 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.
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.
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.
The text was updated successfully, but these errors were encountered: