By iwanerawan
Hi all,
I want to share and need suggestion , what i have done to my cloud server at DO.
My Objective : to change the default port ssh form 22 to 7777
#–1 ADD and CONFIGURE USER useradd iloveyou groupadd weloveyou …
vi /etc/ssh/sshd_config #–2 Modification part Port 7777 ClientAliveInterval 900 ClientAliveCountMax 0 ChallengeResponseAuthentication yes GSSAPIAuthentication no PermitRootLogin no AllowUsers iloveyou PermitEmptyPasswords no
/etc/init.d/sshd restart exit
connect : ssh iloveyou@10.129.xxx.xx -p7777
2.Connect mac console my_mac>$ ssh webmaster@10.129.xxx.xx -p7777 ssh: connect to host 10.129.xxx.xx port 7777: Operation timed out
Note : my iptables still default from DO image, and i’m not yet configure :)
thx
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Oo, i made mistake :( <br>the mistake is using the ip private O). <br> <br>------------------------ <br>Public Network <br>IP Address: 188.xxx.xxx.xx <br> <br>Private Network: <br>Private IP: 10.xxx.xxx.xx <br>------------------------------------- <br> <br>The solution is: <br>my_mac>$ ssh iloveyou@188.xxx.xxx.xx -p7777 <br> <br>thanks to Ryan
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.