Shell script for changing the SSH port ?

MVPSNET

New Member
sed -i 's/#Port 22/Port 5522/g' /etc/ssh/sshd_config

You'll need to restart the ssh daemon afterwards.
 
Top