Migration to SFTP (Port 22) in FileZilla Server - sftp

There are more than 300 FTP users created by FileZilla Server manually in Windows Server 2012 R2.
We can use the existing FTP users (Port 21) with FileZilla and WinSCP for authentication (username and password as static).
With a policy of security, we need to use SFTP (Port 22) for file transfer. So, we've set up OpenSSH in the windows server and can telnet with port 22.
The problem are we can't use the existing FTP users to access the server using WinSCP with port 22, although opening port 22 already

Related

How can I open the web app inside a server in my company from my home?

There are 2 Linux servers in my company (Let's call them A, and B).
A and B are located in a Local Area Network. They don't have public IP addresses. They can send packets to each other using private IP addresses such as 172.27.X.X.
My company only allows us to establish a VPN connection to server A using AnyConnect when we are at home.
Now there's a web app hosting on server B. How can I open the web app using my browser when I'm at home?
The web app on server B listens to port 80 and 443.
I'm able to view web apps on server A when the VPN connection is established. But don't know if it's possible to use server A to get access to the web app on server B.
The most common solution to this is SSH port forwarding AKA SSH tunneling.
To build a tunnel from your local port 8080 to port 80 on remote server B through remote host A, simply do:
ssh -L 8080:<host-B-IP>:80 username#<host-A-IP>
For port 443 on server B:
ssh -L 8443:<host-B-IP>:443 username#<host-A-IP>
Afterwards, you can just open the website using localhost:8080 or localhost:8443.

Wordpress, can't connect to FTPS (SSL)

I'm trying to connect to my server by FTPS (SSL) from Wordpress. But I'm getting failed to connect.
I'm using a different port, 2222 instead of 22. I can connect to the server with Filezilla or other programs but not with Wordpress.
And yes I'm inserting the port to hostname.
Hostname
xxx.xxx.xxx.xxx:2222
FTP/SSH Username
xxxxxxxxxx
FTP/SSH Password
xxxxxxxxxxxxxx
Connection Type
FTPS (SSL)
Error
Failed to connect to FTP Server xxx.xxx.xxx.xxx:2222

Cannot access ftp site through WAN

i was trying to establish an ftp connection on my LAN and WAN , i use windows 8 , i configured the IIS , and opened port 21 , actually disabled firewall , i created a new user to access my ftp folder 'A' , it worked fine on LAN by accessing
ftp://192.168.1.10 (my local ip),from any pc on my LAN.
The problem is , i am trying to access through ftp but this time from WAN , i configured the router to port forward to my LAN (192.168.1.10) , i looked up my static ip , now i have a login panel
ftp://393.32.3.2(random ip) when it comes to authentification i used the user i created but it is not working , any ideas ?
FTP uses both port 20 and 21. You have only port forwarded port 21 which is used to initiate and control connections to FTP servers.
This means you will be able to connect to your FTP server and log in, but it will not be able to transfer any files because that uses port 20.
Hope this helped!
-Kad
you must configure in your router ports 1025-3500 forwarding to yours server ex: 192.168.0.100
you must configure in your router ports 21(all protocols tcp&udp) forwarding to yours server ex: 192.168.0.100

STS vFabric Server Developer Edition not accessible from remote

Hi I successfully run my webapp in STS builtin tc Server.
I can access it from localhost but not from remote computers.
Any ideas?
I think it is not a problem with spring / tc Server.
try to ping the server from your remote computer
get the IP of your server with ipconfig then try to ping it
ping http://10.xx.xxx.12/yourapp
Then check if you have any firewall that blocks the incoming network traffic.
or other program such as Norton / Symantec antivirus that include a "Network Security Threat" feature to block the traffic.
If you have such program, create a rule to grant access to the clients you want to access your server

Accessing LDAP through SSH tunnel

I got access via SSH (root access) to a Machine that's inside a network at my client's office.
I'm programming in my computer a PHP application that needs to integrate to LDAP. The LDAP server is in another server at my client's network and not accesible from outside, however I can perfectly access it via the server I can connect to via SSH.
My question is: IS there anyway I can make a tunnel and setup a port in my computer to get the traffic forwarded to the LDAP server using my SSH connection to one of the computers on the network?
Thanks!!!!
Yes, ssh has a "-L" option to create a tunnel. That option takes 3 parameters, separated by colons (:). Local listen port, remote host, remote port.
ssh -L 9999:ldapserver:389 user#otherhost
Where 9999 is the local port that the tunnel will be created on. The ldapserver:389 bit tells it where to connect to on the other side.
Then, tell your application to connect to localhost:9999 (or whatever port you choose) and it will be tunneled across.

Resources