Guest User

Untitled

a guest
Jan 18th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.14 KB | None | 0 0
  1. Protocol 2
  2.  
  3. ChallengeResponseAuthentication yes
  4. ClientAliveInterval 120
  5. ClientAliveCountMax 2
  6. AuthenticationMethods publickey,password publickey,keyboard-interactive
  7.  
  8. AllowUsers newuser root
  9. PermitEmptyPasswords no
  10.  
  11.  
  12. #----------- SFTP ENABLEMENT ----------
  13.  
  14. Subsystem sftp internal-sftp
  15.  
  16. Match user newuser
  17. ChrootDirectory /home/newuser
  18. PasswordAuthentication yes
  19. X11Forwarding no
  20. AllowTcpForwarding no
  21. ForceCommand internal-sftp
  22.  
  23. systemctl status sshd.service
  24. ● sshd.service - OpenSSH server daemon
  25. Loaded: loaded (/usr/lib/systemd/system/sshd.service; enabled; vendor preset: enabled)
  26. Active: activating (auto-restart) (Result: exit-code) since Thu 2018-01-18 22:44:22 EST; 36s ago
  27. Docs: man:sshd(8)
  28. man:sshd_config(5)
  29. Process: 13015 ExecStart=/usr/sbin/sshd -D $OPTIONS (code=exited, status=255)
  30. Main PID: 13015 (code=exited, status=255)
  31.  
  32. Jan 18 22:44:22 myserver.com systemd[1]: Failed to start OpenSSH server daemon.
  33. Jan 18 22:44:22 myserver.com systemd[1]: Unit sshd.service entered failed state.
  34. Jan 18 22:44:22 myserver.com systemd[1]: sshd.service failed.
  35.  
  36. OpenSSH_7.4p1, OpenSSL 1.0.2k-fips 26 Jan 2017
Add Comment
Please, Sign In to add comment