gcp配置记录
ChaptSand

1 开启第三方SSH登录

1
2
$ sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/g' /etc/ssh/sshd_config
$ sed -i 's/PasswordAuthentication no/PasswordAuthentication yes/g' /etc/ssh/sshd_config

2 添加用户

$ adduser chaptsand
Or
$ useradd -m -s /bin/bash chaptsand

3 授予sudo权限

1
2
$ tee /etc/sudoers.d/chaptsand <<< 'chaptsand ALL=(ALL) ALL'
$ chmod 440 /etc/sudoers.d/chaptsand

4 Oh my zsh

1
$ sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

5 zsh-autosuggestions

1
$ git clone git://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions
  • 本文标题:gcp配置记录
  • 本文作者:ChaptSand
  • 创建时间:2021-10-26 11:22:27
  • 本文链接:https://www.chaptsand.top/posts/d6b069ed.html
  • 版权声明:本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!
 评论