Seite 1 von 1

ssh Passwortabfrage umgehen?!

Verfasst: 08.03.2010, 14:46
von sallii
Hi,

ich muss für ein scp copyjob die Passortabfrage beim connecten per ssh auf einen anderen ESX Server umgehen.

Ich habe bei VMWare folgende Anleitung gefunden, nur leider führt die nicht zum gewünschten Ergebnis.
Bei eingeschaltetem BatchMode kommt:
Permission denied (publickey,gssapi-with-mic,password).
bei ausgeschaltetem BatchMode kommt wieder die Passwortabfrage.

Habe alle gemäß der Anleitung gemacht aber es will nicht funktionieren. Kann jemand weiter helfen?

# Log into the service console as root.

# Change to the SSH server configuration directory:

cd /etc/ssh

# Edit the configuration file:

vi ssh_config

# Add the following line to the bottom of the file:

BatchMode yes

# Restart the service:

service sshd restart

# Create the SSH public key:

ssh-keygen -t dsa

This command outputs the following. Retain the default locations, and do not use a passphrase:

[root@hostname root]$ ssh-keygen -t dsa
Generating public/private dsa key pair.
Enter file in which to save the key (/home/root/.ssh/id_dsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/root/.ssh/id_dsa.
Your public key has been saved in /home/root/.ssh/id_dsa.pub.
The key fingerprint is:
7b:ab:75:32:9e:b6:6c:4b:29:dc:2a:2b:8c:2f:4e:37 root@hostname

Your keys are stored in /root/.ssh.
# Change to the .ssh directory:

cd /root/.ssh

# Run the following commands:

cat id_dsa.pub >> authorized_keys
chmod 600 authorized_keys

Verfasst: 08.03.2010, 16:32
von continuum
es wuerde helfen wenn du sagst wo es schiefgeht ....

Verfasst: 12.03.2010, 08:55
von sallii
Nach Durchführung der Anleitung habe ich folgendes:

Bei eingeschaltetem BatchMode kommt:
Permission denied (publickey,gssapi-with-mic,password).
bei ausgeschaltetem BatchMode kommt wieder die Passwortabfrage.