jimradford / superputty

The SuperPuTTY Window Manager for putty sessions
https://www.facebook.com/superputty
MIT License
1.91k stars 320 forks source link

Cannot configure SSH port to use value from PuTTY profile #854

Open larsen0815 opened 2 years ago

larsen0815 commented 2 years ago

When you configure a session to use a "PuTTY Session Profile", you can leave out the field "Host Name (or IP Address)". SuperPuTTY will then fetch the value from PuTTY and connect to that IP.

Unfortunately, you cannot leave "TCP Port" blank as SuperPuTTY will mark this as "Invalid Port".

This lead to me unknowingly connecting to the live server on port 22, when I wanted to connect to the dev server on port 8022 (which was only configured in PuTTY), as I didn't notice the port setting in SuperPuTTY.

jimradford commented 2 years ago

this sounds like a code fix: When a putty profile is being used, disable requirement for port field to have a valid value.

If Blank, use port specified in profile, if not blank, use value provided for port.

larsen0815 commented 2 years ago

Sounds good