admin   昨天, 10:03 AM
#1
碼:
ssh-keygen -t rsa -b 4096 -C "user@zhtw.com" -f ~/.ssh/user_sshkey
cat ~/.ssh/user_sshkey.pub >> ~/.ssh/authorized_keys
chmod 700 ~/.ssh/authorized_keys



now root can login to user by
ssh user@127.0.0.1 -i /home/user/.ssh/user_sshkey
  
Users browsing this thread: 1 Guest(s)
Powered By MyBB, © 2002-2025 MyBB Group.
Made with by Curves UI.