rajeshkumar created the topic: Changing port of ftp and ssh
Changing port of ftp and ssh
To Change the port of ssh, edit the file /etc/ssh/sshd_config and add the following line:
port 222
Restart the services of ssh to make the changes effective. Now you need to specify the port number using option ‘-p’ whenever you want to access this system.
# ssh localhost -p 22
In order to change the port of ftp server, edit the file /etc/vsftpd/vsftpd.conf
listen_port=2100 # # Add thus line
Restart the service of ftp
Now run the following command to check if the listening ports have been changed or not;
ftp localhost 2100
you can even check the open port using the netstat or nmap commands..
Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn
I’m Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best practices. I have worked at Cotocus and regularly write about technology, travel, investing, health, product reviews, and digital marketing through my various platforms.
I publish technical articles at DevOps School, travel stories at Holiday Landmark, stock market insights at Stocks Mantra, health and fitness guidance at My Medic Plus, product reviews at TrueReviewNow, and SEO and digital marketing strategies at Wizbrand.
Find Trusted Cardiac Hospitals
Compare heart hospitals by city and services — all in one place.
Explore Hospitals