[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [Debian]: ssh zu localhost



On Thu, May 13, 1999 at 07:43:34PM +0100, Stephan Splitthoff wrote:
: Hi!
: 
: Ich veruche gerade, mir das Leben etwas zu erleichtern. In einem Script
: (ssu) hab ich folgendes abgelegt "ssh -l root localhost"
: Jetzt hab ich noch mein identity.pub in roots authorized_keys eingetragen.
: 
: Trotzdem will mein ssu immer noch die passphrase haben.
: 
: Versuche ich das ganze von eine manderen Rechner aus (ssh -l root rechner)
: funktioniert es ohne Passwort/Passphrase (mit entsprechendem
: authorized_keys)

Wie kommst Du auf den anderen Rechner?  Mit ssh?  Und -- laeuft dort
dann ein SSH-Agent?

Z.b. steht in meiner .profile:

test "$SSH_CLIENT" -o "$SSH_AGENT_PID" || {
	eval `ssh-agent` && ssh-add && trap "kill $SSH_AGENT_PID" EXIT
}

Warum gerade so und nicht anders -- es ist eine lange Geschichte.  :-)
Falls noch kein SSH-Client vorhanden ist (der waere da, wenn ich von
woanders gekommen bin) oder falls noch kein SSH-Agent laeuft (der liefe,
wenn ich ihn in der .xsession startete) -- dann und nur dann wird ein
SSH-Agent gestartet und mit der Passphrase (die ich natuerlich nun
einmal angeben muss) versorgt.  Und dieser Agent wird beendet, wenn die
Shell, in der er gueltig war, zu Ende geht.


Aber das beantwortet ja sich Deine Frage noch nicht....

    slogin -v localhost

waere mein erster Versuch (also ohne `root') ..  

Dann als root -- und zum Vergleich hier mal der Output bei mir:

    Script started on Mon May 17 09:10:36 1999
    eremit:~ $ slogin -l root -v localhost
    SSH Version 1.2.26 [i686-unknown-linux], protocol version 1.5.
    Standard version.  Does not use RSAREF.
    eremit: Reading configuration data /etc/ssh/ssh_config
    eremit: ssh_connect: getuid 1000 geteuid 0 anon 0
    eremit: Allocated local port 1022.
    eremit: Connecting to 127.0.0.1 port 22.
    eremit: Connection established.
    eremit: Remote protocol version 1.5, remote software version 1.2.26
    eremit: Waiting for server public key.
    eremit: Received server public key (768 bits) and host key (1024 bits).
    eremit: Forcing accepting of host key for localhost.
    eremit: Host '127.0.0.1' is known and matches the host key.
    eremit: Initializing random; seed file /home/datomis/heiko/.ssh/random_seed
    eremit: Encryption type: idea
    eremit: Sent encrypted session key.
    eremit: Installing crc compensation attack detector.
    eremit: Received encrypted confirmation.
    eremit: Trying rhosts or /etc/hosts.equiv with RSA host authentication.
    eremit: Remote: Rhosts/hosts.equiv authentication refused: client user 'heiko', server user 'root', client host 'localhost'.
    eremit: Server refused our rhosts authentication or host key.
    eremit: Connection to authentication agent opened.
    eremit: Trying RSA authentication via agent with 'heiko@eremit'
    eremit: Received RSA challenge from server.
    eremit: Sending response to RSA challenge.
    eremit: Remote: RSA authentication accepted.
    eremit: RSA authentication accepted by server.
    eremit: Requesting pty.
    eremit: Requesting X11 forwarding with authentication spoofing.
    eremit: Requesting authentication agent forwarding.
    eremit: Requesting shell.
    eremit: Entering interactive session.
    Last login: Tue May 11 09:52:09 1999 from eremit.net.datom.de
    Linux eremit 2.0.36 #4 Sun Feb 28 12:34:58 CET 1999 i686 unknown

    Copyright (C) 1993-1999 Software in the Public Interest, and others

    Most of the programs included with the Debian GNU/Linux system are
    freely redistributable; the exact distribution terms for each program
    are described in the individual files in /usr/doc/*/copyright

    Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
    permitted by applicable law.
    No mail.
    eremit:~ # exit
    logout
    eremit: Transferred: stdin 5, stdout 546, stderr 33 bytes in 4.2 seconds
    eremit: Bytes per second: stdin 1.2, stdout 129.3, stderr 7.8
    eremit: Exit status 0
    exit

    Script done on Mon May 17 09:10:49 1999


(Und genau dieses ssu script habe ich auch:

    #! /bin/bash
    exec slogin -l root localhost




    Viele Gruesse aus Dresden
    Heiko Schlittermann
-- 
[internet & unix support ----------------- Heiko Schlittermann]
[<a href="http://debian.schlittermann.de/";> Debian 2.1 CD </a>]
[Heiko Schlittermann HS12-RIPE finger:heiko@schlittermann.de -]
[pgp: A1 7D F6 7B 69 73 48 35  E1 DE 21 A7 A8 9A 77 92 -------]
------------------------------------------------
Um sich aus der Liste auszutragen schicken Sie
bitte eine E-Mail an majordomo@jfl.de die im Body
"unsubscribe debian-user-de <deine emailadresse>"
enthaelt.
Bei Problemen bitte eine Mail an: Jan.Otto@jfl.de
------------------------------------------------
Anzahl der eingetragenen Mitglieder:     744


Reply to: