Skip to content

Instantly share code, notes, and snippets.

@servercharlie
Created March 7, 2017 17:03
Show Gist options
  • Save servercharlie/48c003b840c82fa62ff940ea873cdfd3 to your computer and use it in GitHub Desktop.
Save servercharlie/48c003b840c82fa62ff940ea873cdfd3 to your computer and use it in GitHub Desktop.
Enabling root login in Ubuntu 16.10 (Yakkety YaK!) - Instant SFTP Access
> 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.
@servercharlie
Copy link
Author

ClientAliveInterval to 30?

@servercharlie
Copy link
Author

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