Miscellanies about initializing an Ubuntu Server

Having trouble with Windows SSH: Unprotected private key file

1
2
3
4
5
6
7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: UNPROTECTED PRIVATE KEY FILE! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions for 'private' are too open.
It is required that your private key files are NOT accessible by others.
This private key will be ignored.
Load key "private": bad permissions

You can use icacls in windows instead of chmod to adjust file permission.

1
2
icacls .\private.key /inheritance:r
icacls .\private.key /grant:r "%username%":"(R)"

Having trouble with SSH login: connection reset after idle for some time

[Ineffective]

1
ssh -o TCPKeepAlive=true root@host.com

For long term use you should modify /etc/ssh/sshd_config as follows:

1
2
ClientAliveInterval 30
ClientAliveCountMax 60

Error: Got permission denied while trying to connect to the Docker daemon socket

Follow the just a few steps and you do not have to access docker images with superuser privileges.

1
2
3
sudo groupadd docker
sudo gpasswd -a ${USER} docker
sudo service docker restart

Add a new sudoer

1
sudo usermod -aG sudo <username>

Miscellanies about initializing an Ubuntu Server

https://devblog.citruxonve.net/posts/4fa68e28/

Author

Semprathlon / Simfae Dean

Posted on

07/08/2018

Updated on

07/19/2023

Licensed under

Comments