How to use port 22 for ssh and sftp?

Please post here if you have problems in using Wing FTP Server.

How to use port 22 for ssh and sftp?

Postby dlthomas » Thu Jan 31, 2013 1:38 am

Is there any way to use the "standard" port 22 for SFTP for Wing FTP users and also for ssh (command line) access for Linux users?

I took the advise provided by email support to change the SFTP port to 2222, but this is causing some consternation from my external users.

I recall reading something about making changes to the ssh config file for chroot jailing sftp with vsftpd, but I don't know how or if that would apply to the Wing FTP Server set up.

I appreciate any advise.

Thanks,
Doug
dlthomas
 
posts 2
 
joined Mon Jan 21, 2013 6:42 pm

Re: How to use port 22 for ssh and sftp?

Postby FTP » Thu Jan 31, 2013 2:08 pm

Yes, you should use another port, or if you have multiple IP addresses, you can have the same port.
FTP
Site Admin
 
posts 1215
 
joined Tue Sep 29, 2009 6:09 am

Re: How to use port 22 for ssh and sftp?

Postby dlthomas » Thu Jan 31, 2013 3:09 pm

Okay, I can add another IP address a number of ways. But, I don't understand how I could specify different ports to different apps. For example,

192.168.1.1:22 -> wftpserver (for Wing users SFTP connections)
192.168.1.2:22 -> sshd (for Linux users ssh connections)

Where would I configure pointing one address to one set of ports and the other to a different set of ports?

Any pointers would be appreciated. I'm just really surprised that I appear to be the first person to be confronted with this situation.
dlthomas
 
posts 2
 
joined Mon Jan 21, 2013 6:42 pm

Re: How to use port 22 for ssh and sftp?

Postby FTP » Sat Feb 02, 2013 7:33 am

You can change the listener IP address for sshd like this:

Code: Select all
vi /etc/ssh/sshd_config
ListenAddress 192.168.1.2


And you can change the listener IP address for Wing FTP Server at "Domain -> Settings -> Listeners".
FTP
Site Admin
 
posts 1215
 
joined Tue Sep 29, 2009 6:09 am


Return to Support

Who is online

Users browsing this forum: No registered users and 2 guests

cron