Topic "Invalid Port Number error occurs while open session in putty"

Author Message
skysaint
[View user's profile]

Joined: 2011-05-18
Posts: 4
Location: XinJiang, China
Hi,

In case of using customized SSH port (e.g. 12712 instead of 22), and login name includes dash (e.g. "tssiprod-g"), WinSCP is able to login successfully, but when I try to open session in putty(Ctrl+P), putty error occurs: "Invalid Port Number".

I have tested the same scenario with putty separately, putty can login without errors, hence the bug should be the one of WinSCP, please check it. Thanks.

WinSCP version: Any
putty version: 0.60 (latest)
SSH server: OpenSSH_4.3p2
Host: CentOS release 5.6 (Final) Linux version 2.6.18-238.9.1.el5
Windows: WinXP SP3

Thanks in advance!

-Jansen
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
I cannot reproduce the problem. I have used the same port number, the same username, the same PuTTY version.

After you reproduce the problem, run PuTTY again and try to open stored session "WinSCP temporary session". What does it do?
skysaint
[View user's profile]

Joined: 2011-05-18
Posts: 4
Location: XinJiang, China
Re-open "WinSCP temporary session", no problems, putty's just there waiting for password input.

My server has used the default port 22, and WinSCP has stored it with user "tssiprod". After I changed the port, and create a new user "tssiprod-g", the error appears.

Would the WinSCP config or other files be useful for trace the problem?
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
Do you have a password stored in the WinSCP? Do you have password passing to PuTTY enabled? If you do, can you try to disable and see if it helps?

Also try to run PuTTY from command line password following string as an argument:
-load "WinSCP temporary session"
skysaint
[View user's profile]

Joined: 2011-05-18
Posts: 4
Location: XinJiang, China
Disable password passing to putty, "Invalid port number" disappears.
My password is complicated thus I hope this problem could be resolved.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
Though I wasn't able to reproduce this exact problem, I can imagine that certain combination of quotes, colons and spaces in password can cause this. I'll see if I can fix this.
_________________
Martin Prikryl
skysaint
[View user's profile]

Joined: 2011-05-18
Posts: 4
Location: XinJiang, China
FYI, the password is "8w}m<r-}RaN9z0.p+&+

Thanks!
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
This issue has been added to tracker.
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License