access ssh with different port in browser web lightsail

0

access ssh with different port in browser web lightsail

已提问 1 年前529 查看次数
2 回答
0
已接受的回答
已回答 1 年前
profile picture
专家
已审核 2 个月前
  • How come the related post to ssh not to change the port, i think your goal is to change the port and acess from the browser, So you are able to acess Lightsail from browser with different SSH port

0

Hi

If you would like to change the port of the Lighsail instance, You can do that by using the following settings

  • SSH into the machine

  • Edit file /etc/ssh/sshd_config change #port Like shown in the picture

  • sudo service sshd restart

  • Then you need to allow PORT In the inbound rules from the Lightsail console

  • Remember Light sail WEB SSH works Only with default 22 port, So if you change the port you need to use any SSH client like putty or termius, Lightsail web ssh doesnt work

Thank You GK

profile picture
专家
GK
已回答 1 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则