Created
August 23, 2017 14:10
-
-
Save abhinavkorpal/c998ed4c20cff9f5724ad006e293887b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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