De Help Desk punt NL
Kennisbank
De Helpdesk > De Helpdesk > Kennisbank

Rsync SSH inlog zonder wachtwoord in te geven Fedora of Centos

Oplossing Sync keys aanmaken: [root@server ~]# ssh-keygen -t dsa Generating public/private dsa key pair. Enter file in which to save the key (/root/.ssh/id_dsa): <- Enter Enter passphrase (empty for no passphrase): <- Enter Enter same passphrase again: <- Enter Your identification has been saved in /root/.ssh/id_dsa. Your public key has been saved in /root/.ssh/id_dsa.pub. The key fingerprint is: xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx root@backupsrv <- I changed this line putting the "xx" Then we will copy the public key to each servers in the directory and with the name as indicated in the manual for ssh (1). So, we will run [root@server ~]# man 1 ssh to be sure about the directory and name. After that, we will proceed to copy the public key to all the servers: [root@server ~]# scp /root/.ssh/id_dsa.pub backupserver:/root/.ssh/authorized_keys2 [root@server ~]# scp /root/.ssh/id_dsa.pub wwwserver:/root/.ssh/authorized_keys2 To check we did all in the correct way, we will connect through ssh to the servers. [root@server ~]# ssh serverA If they do NOT ask for a password, it means that we have gone well.
 
Was dit artikel bruikbaar? ja / nee
Gerelateerde artikelen Backups using Rsync, Bash & Cron
Sensors uitlezen HP proliant in Centos
Rsync server1 naar server2
Geen netwerk in Centos 6 na installatie
Edit symlinks
Firewall uitschakelen Centos 6
PHPmailer installeren onder Fedora
LAMP server Redhat, CentOS en Fedora
Wachtwoord herstel MySQL root wachtwoord
ISPconfig website overzetten andere master server
Artikel details
Artikel ID: 58
Categorie: Backup
Zoekwoorden
Datum toegevoegd: 15-Dec-2009 11:23:49
Aantal bekeken: 2126
Beoordeling (Stemmen): Artikel beoordeeld 4.6/5.0 (1684)

 
« Ga terug