root@vuduo2:~# mkdir keys
mkdir: can't create directory 'keys': File exists
root@vuduo2:~# cd keys
root@vuduo2:~/keys# dropbearkey -t rsa -f id_rsa > id_rsa.pub
Generating key, this may take a while...
root@vuduo2:~/keys# ls -lah
drwxr-xr-x 2 root root 296 Aug 26 17:55 .
drwxr-xr-x 4 root root 360 Aug 26 17:53 ..
-rw------- 1 root root 805 Aug 26 17:55 id_rsa
-rw-r--r-- 1 root root 481 Aug 26 17:55 id_rsa.pub
root@vuduo2:~/keys# rsync -rltD -n -e "ssh -i /home/root/keys/id_rsa" /media/hdd
/Speckrolle harddisk-4650@rsync.hidrive.strato.com:/users/harddisk-4650/backupdu
o2
ssh: Connection to harddisk-4650@rsync.hidrive.strato.com:22 exited: Disconnect received
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(226) [sender= 3.1.1]
mkdir: can't create directory 'keys': File exists
root@vuduo2:~# cd keys
root@vuduo2:~/keys# dropbearkey -t rsa -f id_rsa > id_rsa.pub
Generating key, this may take a while...
root@vuduo2:~/keys# ls -lah
drwxr-xr-x 2 root root 296 Aug 26 17:55 .
drwxr-xr-x 4 root root 360 Aug 26 17:53 ..
-rw------- 1 root root 805 Aug 26 17:55 id_rsa
-rw-r--r-- 1 root root 481 Aug 26 17:55 id_rsa.pub
root@vuduo2:~/keys# rsync -rltD -n -e "ssh -i /home/root/keys/id_rsa" /media/hdd
/Speckrolle harddisk-4650@rsync.hidrive.strato.com:/users/harddisk-4650/backupdu
o2
ssh: Connection to harddisk-4650@rsync.hidrive.strato.com:22 exited: Disconnect received
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(226) [sender= 3.1.1]
Gemacht wie beschrieben.
So richtig?
Dieser Beitrag wurde bereits 2 mal editiert, zuletzt von hgdo ()