First time here? Check out the FAQ!
1

Specifying port of remote host

Hi,

Is it possible to specify a different port when configuring a remote host? I.e. I am connecting to the remote host through a tunnel which is configured to a specific port (not 22) on the localhost.

Thanks,

Amit

Amit's avatar
56
Amit
asked 2017-06-04 17:52:00 -0500
Wingware Support's avatar
4k
Wingware Support
updated 2019-03-13 09:45:21 -0500
edit flag offensive 0 remove flag close merge delete

Comments

Hi, I tried to work around this problem by forwarding port 22 on my computer to the remote computer (actually to the proxy between my computer and the remote computer I am trying to connect to). I am able to connect to the remote computer without a password as follows:

> ssh localhost

But when I probe the remote host through wingide I get the following message:

Connecting to host id remote failed. Please check your configuration. Output received:
Created meta importer
(' Added dir', '/home/amit/wingide6.0/bin/dbg/src/debug')
(' Added dir', '/home/amit/wingide6.0/src/debug')
(' Added dir', '/home/amit/wingide6.0/bin/dbg/src/wingbase')(
' Added dir', '/home/amit/wingide6.0/src/wingbase')
WARNING: Using pure Python statops, which will be slower
SSH client exited errno=0

I am using the latest wingide Pro on both computers.

Thanks,

Amit

Amit's avatar Amit (2017-06-05 00:17:00 -0500) edit
add a comment see more comments

1 Answer

1

You can set up the port to use for connecting to a remote host by adding the port to your ~/.ssh/config file like this: host 192.168.0.20 port 50000

Then when Wing runs ssh that configuration is used. I'm not sure why forwarding port 22 as you did failed... it seemed to have connected and run the remote agent (the second to last message came from it), but it's possible something is getting confused by the forwarding.  

Wingware Support's avatar
4k
Wingware Support
answered 2017-06-05 08:43:00 -0500
edit flag offensive 0 remove flag delete link

Comments

BTW, the docs page for this is http://wingware.com/doc/proj/ssh-setup-details

Wingware Support's avatar Wingware Support (2017-06-05 08:43:00 -0500) edit
add a comment see more comments

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss.

Add Answer