CALS NOTE

  • Home
  • Archives
  • Cheatsheets
  • rss
  • About
  • Friends
2018-02-09 Calvin Lam
Comments

Linux password-less ssh and sudo

Cli

Password-less ssh

1
2
3
4
5
sudo apt-get install ssh
# client-side
ssh-keygen
ssh-copy-id USER@HOST
ssh USER@HOST

Password-less sudo

1
echo "`whoami` ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
  • Keygen
  • Linux
  • Operation
  • Ssh
  • Sudo
  • SysOps
  • System
Newer
Deploy container to other host througt docker-machine
Older
Pug Cli Cheatsheet

CALS NOTE

© 2020 Calvin Lam
Modify from Apollo theme, designed by SANOGRAPHIX.NET
Powered by Hexo