아마도 당신이 찾고있는 대답은 아니지만 SSH 키를 사용하지 않는 이유는 무엇입니까?
업데이트 스크립트 :
inotifywait -m /srv/watchfolderfilme -e create -e moved_to |
while read path action file; do
...
scp -r /srv/newtorrentfiles/* [email protected]:/srv/torrentfiles && rm -r /srv/newtorrentfiles/*
done
이
[email protected]:~> ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/home/a/.ssh/id_rsa):
Created directory '/home/a/.ssh'.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/a/.ssh/id_rsa.
Your public key has been saved in /home/a/.ssh/id_rsa.pub.
The key fingerprint is:
3e:4f:05:79:3a:9f:96:7c:3b:ad:e9:58:37:bc:37:e4 [email protected]
지금 이미 디렉토리를 존재 (B.에 사용자 B와 같은 디렉토리 ~/스푸핑을 만들 SSH를 사용 할 방법 , 괜찮습니다) :
[email protected]:~> ssh [email protected] mkdir -p .ssh
[email protected]'s password:
마지막으로 a의 새 공개 키를 b @ B에 추가합니다
[email protected]:~> ssh [email protected]
소스 >>http://www.linuxproblem.org/art_9.html
: 당신이 암호없이 A와 같은에서 B로 B에 로그인 할 수 있습니다 지금부터
[email protected]:~> cat .ssh/id_rsa.pub | ssh [email protected] 'cat >> .ssh/authorized_keys'
[email protected]'s password:
: 스푸핑/authorized_keys에와 B의 암호를 마지막으로 시간을 입력