Hi!
Do you have a firewall in your company that blocks the port 22? Do you want to put your amazon ec2 ubuntu server running in more than one port? For instance 22 and 8888? Just follow this steps and get what you want!
sudo -s
vim /etc/ssh/sshd_config
Add after this line: Port 22 more one line. Port 8888
Port 22 Port 8888
[email protected]:/tmp# service ssh reload [email protected]:/tmp# netstat -tan |grep LISTEN |grep -v 127.0.0.1 | sort tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:8888 0.0.0.0:* LISTEN tcp6 0 0 :::22 :::* LISTEN tcp6 0 0 :::80 :::* LISTEN tcp6 0 0 :::8888 :::* LISTEN [email protected]:/tmp#
<< All Posts
Previous post:
Just testing the new OpenBSD 5.5
Just testing the new OpenBSD 5.5