mv 명령으로 폴더 덮어쓰기 안될 때

Developement/Linux&Unix|2021. 12. 23. 00:26

mv 명령으로 폴더 덮어쓰기 안될 때 find 명령어를 사용해서 각 파일별로 이동 시킨다.

find -type f -print0 | xargs -0 -n 1 -I {} mv '{}' '../work/{}'

 

댓글()

SSH 접속시 - permissions 0xxx for are too open 오류 발생시

Developement/Linux&Unix|2021. 12. 23. 00:19

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@         WARNING: UNPROTECTED PRIVATE KEY FILE!          @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 
Permissions 0644 for './***.pem' are too open.
It is required that your private key files are NOT accessible by others.
This private key will be ignored.
bad permissions: ignore key: ./***.pem
Permission denied (publickey,gssapi-keyex,gssapi-with-mic).

 

 

아래 명령어로 해결하면 된다.

chmod 600 ~/.ssh/***.pem

댓글()

centos - sshfs 로 원격 디스크 마운트하기

Developement/Linux&Unix|2021. 12. 23. 00:18
yum install sshfs

# 마운트할 디렉토리 생성
mkdir -p /backup

sudo sshfs -o allow_other user@x.x.x.x:/backups/server1 /backup

centos - sshfs 로 원격 디스크 마운트하기

 

 

댓글()

centos 6 - yum update 오류 발생시 해결방법

Developement/Linux&Unix|2021. 12. 23. 00:17

centos 6 - yum update 오류 발생시 아래와 같은 방법으로 해결한다.

 

echo "https://vault.centos.org/6.10/os/x86_64/" > /var/cache/yum/x86_64/6/base/mirrorlist.txt
echo "http://vault.centos.org/6.10/extras/x86_64/" > /var/cache/yum/x86_64/6/extras/mirrorlist.txt
echo "http://vault.centos.org/6.10/updates/x86_64/" > /var/cache/yum/x86_64/6/updates/mirrorlist.txt
yum update

댓글()