ashkulz / NppFTP

Plugin for Notepad++ allowing FTP, FTPS, FTPES and SFTP communications
https://ashkulz.github.io/NppFTP/
320 stars 93 forks source link

SFTP port can only be 22, I'm not able to use other port #299

Open he902 opened 3 years ago

he902 commented 3 years ago

My server has two SFTP ports 22 and 40022. When I set the NppFTP plugin Profile to use SFTP port 40022, NppFTP still connect to port 22.

The parameter "Port" in the Profile configuration does not take effect, it always use the default SFTP port 22. How to configure a different SFTP port (other than 22)?

I'm using NppFTP plugin version: 0.29.6

chcg commented 3 years ago

From a first test with test.rebex.net (https://test.rebex.net/) and source code inspection it seems different ports should work. For rebex just with port 22 the connection is possible. With 40022 not connection is possible therefore at least no fallback to port 22 is used if 40022 is added to the port edit field in profile settings.

grafik

@he902 Have you tested the behaviour with some other sftp client like filezilla? Is it working as expected with that client?

JWSmythe commented 3 years ago

Almost all servers that I use have SSH on alternative ports. Attacks on port 22 are too frequent, even if they'll never succeed. Machines I own or manage all have SSH on the alternative port, and not port 22. The firewall does protect it, but if there's a firewall mistake, it's best to take further countermeasures too.

I simply set the port number in the profile, with the Port: box. I've been using it for years without any trouble. I changed the port number to yours just for this screenshot.

I know your post is a bit old, but if you're still having trouble, I wouldn't mind helping you to work through it. I'm not part of the NppFTP team, I'm just a helpful user. Since there isn't anything wrong with NppFTP, there's no need for them to fix it.

screenshot-Profile settings-2021-05-06 12_50_25
alvalkov commented 3 years ago

Problem still persist, when you are using domain name for connection, and dont exisist if you use ip address!

got natted connection to two servers with different ssh port forwardings. 1st is on port 7802 2nd is on port 8807 if i use ip address got normal connection to two servers if i use fqdn got link only to first one in profile list изображение