Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save abhinavkorpal/c998ed4c20cff9f5724ad006e293887b to your computer and use it in GitHub Desktop.
Save abhinavkorpal/c998ed4c20cff9f5724ad006e293887b to your computer and use it in GitHub Desktop.
su #substitute user
id
echo $USER
su -l #full login shell
cat /etc/sudoers
sudo visudo
ssh -l root 192.168.0.3
vi /etc/ssh/sshd_config
systemctl restart sshd
su -
hostname
cat .ssh/known_hosts
ssh-keygen -t rsa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment