Linux
ssh-keygen -t ed25519
cat ~/.ssh/id_ed25519.pub > ~/.ssh/authorized_keys
chmod 700 ~/.ssh
chmod 400 ~/.ssh/authorized_keys
chmod 400 ~/.ssh/id_ed25519
ssh-keygen -t ed25519
cat ~/.ssh/id_ed25519.pub > ~/.ssh/authorized_keys
chmod 700 ~/.ssh
chmod 400 ~/.ssh/authorized_keys
chmod 400 ~/.ssh/id_ed25519
Activate with money or with your favorite tools.
Rename-Computer
)systemctl enable docker
Need to login as root
arch: amd64
cores: 1
features: nesting=1
hostname: MY_HOST_NAME
memory: 512
# Linux: /home/me/.ssh/config | |
# macOS: /Users/me/.ssh/config | |
# Windows: C:\Users\me\.ssh\config | |
# macOS - localhost - fish shell | |
HOST localhost | |
Hostname localhost | |
User me | |
Port 22 | |
IdentityFile /Users/me/.ssh/id_ed25519 |
/** | |
* get a random Integer number ∈ [minValue, maxValue) | |
*/ | |
public Integer getRandomNumberBetween(Integer minValue, Integer maxValue) { | |
if (minValue > maxValue) { | |
// swap position | |
Integer tmp = minValue; | |
minValue = maxValue; | |
maxValue = tmp; |
qm rescan
=> /etc/samba/credentials
username=myuser123
password=xxxxxxxx
ssh-keygen -t ed25519
cat ~/.ssh/id_ed25519.pub > ~/.ssh/authorized_keys
chmod 700 ~/.ssh
chmod 400 ~/.ssh/authorized_keys