create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
OPTIONAL | |
ensure pulling is possible via www-data user | |
-> sudo -u www-data git pull | |
if not add it in visudo | |
-> git ALL = (www-data) /usr/bin/git pull | |
add ubuntu to www-data group | |
-> sudo usermod -aG www-data ubuntu |
#!/bin/bash | |
# based on http://unix.stackexchange.com/questions/175071/how-to-decrypt-hostnames-of-a-crypted-ssh-known-hosts-with-a-list-of-the-hostna/175199#175199 | |
function replace { | |
host="$1" | |
found=$(ssh-keygen -F "$host" 2>/dev/null | grep -v '^#' | sed "s/^[^ ]*/$host/") | |
if [ -n "$found" ]; then | |
ssh-keygen -R "$host" &>/dev/null | |
echo "$found" >>~/.ssh/known_hosts | |
echo "Found and replaced: $host" |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
# allow reload of this file with PRE r | |
bind r source-file ~/.tmux.conf \; display "Reloaded." | |
# switch prefix to control-a, unmap b, allow double-a to go through | |
set -g prefix C-a | |
unbind C-b | |
bind C-a send-prefix | |
# -r repeat time (Default 500 millis) | |
set -g repeat-time 2000 |
>>> docker exec -it CONTAINERID /bin/sh
/app # telnet
/bin/sh: telnet: not found
/app # apk update
fetch http://dl-cdn.alpinelinux.org/alpine/v3.7/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.7/community/x86_64/APKINDEX.tar.gz
v3.7.0-243-gf26e75a186 [http://dl-cdn.alpinelinux.org/alpine/v3.7/main]
v3.7.0-229-g087f28e29d [http://dl-cdn.alpinelinux.org/alpine/v3.7/community]