Created
March 7, 2017 17:03
-
-
Save servercharlie/48c003b840c82fa62ff940ea873cdfd3 to your computer and use it in GitHub Desktop.
Enabling root login in Ubuntu 16.10 (Yakkety YaK!) - Instant SFTP Access
This file contains 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
> why enable root login? | |
> useful for dev purposes if you want instant sftp access. | |
> you can revert these settings anyways in case you decide to go for production. | |
sudo nano /etc/ssh/sshd_config | |
> change PermitRootLogin prohibit-password | |
> to PermitRootLogin yes | |
sudo systemctl restart sshd | |
sudo passwd | |
> enter and confirm your password. | |
> done. |
Note: You can just use WinSCP + Your private key that matches your vm's public key, and just use your username on login.
It will automatically ask for the passphrase.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ClientAliveInterval to 30?