Problem With Solutions

Something Different In Linux

Home » Network » Change SSH port to some higher port?

Change SSH port to some higher port?

Posted by Rishikesh Vispute Categories: Network

Change SSH port to some higher port?

Ans>

pico -w /etc/ssh/sshd_config

Find the line ‘#Port 22′ and uncomment it and change it to look like ‘Port [Random high level port here]‘.

for example we changes the port no22 to port no 322

Port 322
#Protocol 2,1
Protocol 2
#AddressFamily any
#ListenAddress 0.0.0.0
#ListenAddress ::

now save the file and retsrat ssh service

Thanks,


Optimized by SEO Ultimate