Direkt zum Hauptbereich

ssh public key authentication:

This document assumes that you are using OpenSSH on the client and remote computers

1.Create a public and private key pair for the protocol you want to use. To create a key pair for use by SSH2, enter: ssh-keygen
the key generation program will create a private key in a file with the name you specified and a public key with the same name, plus a .pub extension.

2. Copy your public key to the remote host by entering:
scp ~/.ssh/filename.pub hostname:

3. Connect to the remote host using your password for authentication. If the authorized_keys file doesn't exist, create it with the following commands:
mkdir -p ~/.ssh touch ~/.ssh/authorized_key

On the remote host, add your public key to the authorized_keys file, with the following command:
cat ~/filename.pub >> ~/.ssh/authorized_keys

Schritte 2 und 3 können auch mit dem Befehl
ssh-copy-id (z.b. ssh-copy-id amilo)
bequem zusammengefasst werden.

To use ssh-agent and ssh-add, follow the steps below:

  1. At the Unix prompt, enter: eval $(ssh-agent)

  2. Enter the command: ssh-add
  3. Enter your private key password.

  4. When you log out, enter the command: kill $SSH_AGENT_PID To run this command automatically when you log out, place it in your .logout file (if you are using csh or tcsh) or your .bash_logout file (if you are using bash).


cited from: http://kb.iu.edu/data/aews.html and http://kb.iu.edu/data/aeww.html

Kommentare

Beliebte Posts aus diesem Blog

migrating from kmail to thunderbird

While I gave up local mails and subordinated entirely to google meanwhile, my partner still wants to be independant and prefers local mails. Since KMail seemst to be wrecked, I have to migrate her mails to the old mbox format of thunderbird. This one-command-recipe worked for me. I replaced Archive/ by e.g. .kde/share/apps/kmail/mail/inbox and sarchive by sMBOXinbox . To import  MBOXinbox they simply have to be copied to   ~/.thunderbird/.....default/Mail/Local\ Folders . Converting Maildir to mbox via mutt Ran into an issue today where I needed to convert a Maildir containing over 50k messages to mbox format and couldn’t really find any good tools. So I found  this blog post  about using mutt to do it. Unfortunately, it converted one Maildir to another. =( One crucial piece is missing, so here is the one-liner in all its glory: $ mutt -f Archive/ -e 'set mbox_type=mbox; set confirmcreate=no; \ set delete=no; push "T.* ;sarchive "' The above convert...

Mausgeschwindigkeit einzelner Mäuse unter Ubuntu anpassen

Mäuse mit einer sehr hohen Abtastrate bewegen den Pointer viel zu schnell. Leider gibt es keinen Regler, mit dem man die Geschwindigkeit unmittelbar herunterregeln kann. Helfen kann das Kommando "xinput": In Kürze: Open a terminal Run the command: xinput --list --short ⎡ Virtual core pointer id=2 [master pointer (3)] ⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)] ⎜ ↳ Razer USA, Ltd DeathAdder Mouse id=6 [slave pointer (2)] ⎜ ↳ Razer USA, Ltd DeathAdder Mouse id=7 [slave pointer (2)] ⎜ ↳ Razer DeathAdder id=11 [slave pointer (2)] ⎜ ↳ Macintosh mouse button emulation id=12 [slave pointer (2)] ⎣ Virtual core keyboard id=3 [master keyboard (2)] ↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)] ↳ Power Button id=8 [slave keyboard (3)] ↳ Power Button id=9 [slave k...

Sind AKW ausreichend versichert?

 Nein. AKW werden bevorzugt behandelt und sind von der eigentlich vorgeschriebenen Haftung, wie sie für andere Betriebe insbesondere Stromproduzenten vorgeschrieben ist, weitgehend befreit. Einzelne AKW sind bis 250Mio€ versichert, ein Pool von AKW versichert bis 2.5Mrd€. Darüberhinaus springt der Staat ein. Der zu versichernde Schaden müsste aber 6000Mrd€ versichern.Würde diese Ausnahme aufgehoben, würden die Stromproduktionspreise auf das 20 bis 40 fache steigen. (Manager Magazin, Handelsblatt, Wikipedia) (Als Maßstab: Alleine Der Bau eines AKW bewegt sich in der Größenordnung 20Mrd€ (Flamanville Frankreich im Bau) und 30Mrd€ (Hinkley Point C Großbrittanien), die Versicherungssumme des AKW Pool reicht gerade für etwa ein zehntel des Baus eines einzelnen AKW)  Es gibt aber eine ausführliche statistische Rechnung auf der pro-AKW Website Nuklearia , die behauptet die gängige Risikoabschätzung sei viel zu pessimistisch und unwissenschaftlich. In einer Bundestagsstudie 1990 wird ...