Limited Time Offer!

For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly.
Master DevOps, SRE, DevSecOps Skills!

Enroll Now

Changing port of ftp and ssh

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

Tagged :
0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x