Guest User

Untitled

a guest
Nov 16th, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. systemctl start sshd.service
  2. scp /home/user/asdf.log user@127.0.0.1:/home/user/test/asdf.log
  3. ...
  4. zsh:1: command not found: scp
  5.  
  6. ssh user@127.0.0.1 ls
  7. ...
  8. zsh:1: command not found: ls
  9.  
  10. ssh root@127.0.0.1 ls
  11. ...
  12. Desktop
  13. Documents
  14. Music
  15. ...
  16.  
  17. #/etc/ssh/sshd_config
  18. PermitRootLogin yes # this is bad; for testing only
  19. AuthorizedKeysFile .ssh/authorized_keys
  20. ChallengeResponseAuthentication no
  21. UsePAM yes
  22. PrintMotd no #pam does that
  23. Subsystem sftp /usr/lib/ssh/sftp-server
Add Comment
Please, Sign In to add comment