소스 검색

Update LinuxInit.sh

MoeClub 4 년 전
부모
커밋
ed2d3f9b80
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      LinuxInit.sh

+ 1 - 0
LinuxInit.sh

@@ -13,6 +13,7 @@ sed -i 's/^#\?RuntimeMaxUse=.*/RuntimeMaxUse=8M/' /etc/systemd/journald.conf
 systemctl restart systemd-journald
 
 # ssh
+[ -d ~/.ssh ] || mkdir -p ~/.ssh
 echo -ne "# chmod 600 ~/.ssh/id_rsa\n\nHost *\n  StrictHostKeyChecking no\n  UserKnownHostsFile /dev/null\n  IdentityFile ~/.ssh/id_rsa\n" > ~/.ssh/config
 
 # nload