nkcroft
nkcroft
nkcroft
2 posts
Web Engineer's Posts
Don't wanna be here? Send us removal request.
nkcroft · 4 years ago
Text
git cache clear
git rm -r --cached . && git add . git commit -m "clear git cache"
0 notes
nkcroft · 4 years ago
Text
Ubuntu 사용자 SSH 포트 설정하기
Env. GCE/Ubuntu20.04LTS
현재 운용중인 SSH포트 확인하기
netstat -anp | grep "LISTEN " | grep 22
SSH 포트 변경하기
sudo vi /etc/ssh/sshd_config # PORT=22
sshd 서비스 재시작
sudo service sshd restart
gcloud ssh access command
gcloud compute ssh [instance_name] --ssh-flag="-p [ssh_port]"
1 note · View note