logo NodeSeekbeta

GCP(谷歌云)使用SSH(finashell、xhsell、Putty等远程软件)连接教程

代码如下
打开SSH网页链接,复制下面命令粘贴到sssh回车即可,修改完成后就可以愉快的链接喽!
echo "root:你的密码" | sudo chpasswd root && sudo sed -i 's/^#?PermitRootLogin./PermitRootLogin yes/g' /etc/ssh/sshd_config && sudo sed -i 's/^#?PasswordAuthentication./PasswordAuthentication yes/g' /etc/ssh/sshd_config && sudo service ssh restart && sudo reboot && echo "Password changed successfully and SSH configuration updated. Restarting Server..." || echo "Failed to change password or update SSH configuration"
成功过了能不能给个鸡腿!首次免费就送我吧!
xhj006

12
  • 坛里的脚本似乎都对ubuntu系统无效,稍微改动了下:

    curl -sO https://raw.githubusercontent.com/chentianqihub/surge/main/scripts/rootpw.sh && chmod +x rootpw.sh && ./rootpw.sh
    
  • @qilifuzi #7 确实我的脚本几乎适配所有主流系统

  • bd

  • 直接ssh browser不就行了

  • 直接脚本搞定,简单无脑 xhj008 xhj008 xhj008

  • 还是习惯一条一条来 xhj010

  • 感谢分享

  • 这样也简单

    echo root:你的密码 |sudo chpasswd root
    sudo sed -i 's/^.*PermitRootLogin.*/PermitRootLogin yes/g' /etc/ssh/sshd_config;
    sudo sed -i 's/^.*PasswordAuthentication.*/PasswordAuthentication yes/g' /etc/ssh/sshd_config;
    sudo service sshd restart
    
  • 太复杂

12

你好啊,陌生人!

我的朋友,看起来你是新来的,如果想参与到讨论中,点击下面的按钮!

📈用户数目📈

目前论坛共有72019位seeker

🎉欢迎新用户🎉