Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
## Assume you are ROOT!
vim /etc/ssh/sshd_config
# ClientAliveInterval 300
# ClientAliveCountMax 6
vim ~/.bashrc
# HISTSIZE=-1
# HISTFILESIZE=-1
# alias gst='git status'
source ~/.bashrc
mkdir ~/.ssh
chmod 700 ~/.ssh
touch ~/.ssh/authorized_keys
chmod 600 ~/.ssh/authorized_keys
# append your SSH public key in ~/.ssh/authorized_keys
# OPTIONAL: if ubuntu needs its own rsa key pair [S]
ssh-keygen -t rsa
chmod 644 ~/.ssh/id_rsa.pub # maybe already set
chmod 600 ~/.ssh/id_rsa # maybe already set
# OPTIONAL: if ubuntu needs its own rsa key pair [E]
# hostname 설정
hostname AAA
vim /etc/hosts
# 127.0.1.1 AAA
vim /etc/hostname
# AAA
apt update
apt upgrade
# OPTIONAL: build-essential
apt install build-essential curl libcurl3
# OPTIONAL: python 2.7, needed for "node-gyp"
apt install python-minimal
# OPTIONAL: nvm
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.1/install.sh | bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.