Likes Likes:  0
Resultaten 1 tot 4 van de 4
Geen
  1. #1
    SSH: Agent Forwarding
    geregistreerd gebruiker
    4.048 Berichten
    Ingeschreven
    24/01/03

    Locatie
    London, United Kingdom, United Kingdom

    Post Thanks / Like
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    9 Berichten zijn liked


    Naam: Dennis Arslan
    Bedrijf: Rackspace
    Functie: Linux Server Specialist
    URL: www.dennisarslan.com
    Registrar SIDN: ja
    KvK nummer: 04070212
    Ondernemingsnummer: nvt
    TrustCloud: DennisArslan
    View dennisarslan's profile on LinkedIn

    Thread Starter

    SSH: Agent Forwarding

    Uhm...
    Section 9.4: Using agent forwarding
    Agent forwarding is a mechanism that allows applications on your SSH server machine to talk to the agent on your client machine.

    Note that at present, agent forwarding in SSH2 is only available when your SSH server is OpenSSH. The ssh.com server uses a different agent protocol which they have not published. If you would like PuTTY to be able to support agent forwarding to an ssh.com server, please write to ssh.com and explain to them that they are hurting themselves and their users by keeping their protocol secret.

    To enable agent forwarding, first start Pageant. Then set up a PuTTY SSH session in which "Allow agent forwarding" is enabled (see section 4.16.3). Open the session as normal.

    If this has worked, your applications on the server should now have access to a Unix domain socket which the SSH server will forward back to PuTTY, and PuTTY will forward on to the agent. To check that this has actually happened, you can try this command on Unix server machines:

    unixbox:~$ echo $SSH_AUTH_SOCK
    /tmp/ssh-XXNP18Jz/agent.28794
    unixbox:~$
    If the result line comes up blank, agent forwarding has not been enabled at all.

    Now if you run ssh on the server and use it to connect through to another server that accepts one of the keys in Pageant, you should be able to log in without a password:

    unixbox:~$ ssh -v otherunixbox
    [...]
    debug: next auth method to try is publickey
    debug: userauth_pubkey_agent: trying agent key my-putty-key
    debug: ssh-userauth2 successful: method publickey
    [...]
    If you enable agent forwarding on that SSH connection as well (see the manual for your server-side SSH client to find out how to do this), your authentication keys will still be available on the next machine you connect to - two SSH connections away from where they're actually stored.

    In addition, if you have a private key on one of the SSH servers, you can send it all the way back to Pageant using the local ssh-add command:

    unixbox:~$ ssh-add ~/.ssh/id_rsa
    Need passphrase for /home/fred/.ssh/id_rsa
    Enter passphrase for /home/fred/.ssh/id_rsa:
    Identity added: /home/fred/.ssh/id_rsa (/home/simon/.ssh/id_rsa)
    unixbox:~$
    and then it's available to every machine that has agent forwarding available (not just the ones downstream of the place you added it).
    Kan iemand mij nu uitleggen wat 'Agent Forwarding' met PuTTY en OpenSSH nu eigenlijk is?
    En gebruiken jullie het?
    Is het handig?
    Heeft het security-issues?

  2. #2
    SSH: Agent Forwarding
    Network Engineer
    418 Berichten
    Ingeschreven
    28/06/03

    Locatie
    Sittard, NL

    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    0 Berichten zijn liked


    Registrar SIDN: ja
    KvK nummer: 14075459
    Ondernemingsnummer: nvt

    Als je gebruik maakt van een ssh-agent op je machine om je passphrases van je keys te bewaren (zodat je deze niet iedere keer hoeft in te typen) kan je dmv ssh-agent forwarding deze data beschikbaar stellen voor andere machines waar je op inlogt.

    In de praktijk komt het erop neer dat je maar op 1 machine je ssh-key passphrases hoeft in te typen en dmv ssh-agent forwarding dit over alle machines waar je op door inlogt beschikbaar is.

  3. #3
    SSH: Agent Forwarding
    geregistreerd gebruiker
    4.048 Berichten
    Ingeschreven
    24/01/03

    Locatie
    London, United Kingdom, United Kingdom

    Post Thanks / Like
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    9 Berichten zijn liked


    Naam: Dennis Arslan
    Bedrijf: Rackspace
    Functie: Linux Server Specialist
    URL: www.dennisarslan.com
    Registrar SIDN: ja
    KvK nummer: 04070212
    Ondernemingsnummer: nvt
    TrustCloud: DennisArslan
    View dennisarslan's profile on LinkedIn

    Thread Starter
    Origineel geplaatst door Cliff
    Als je gebruik maakt van een ssh-agent op je machine om je passphrases van je keys te bewaren (zodat je deze niet iedere keer hoeft in te typen) kan je dmv ssh-agent forwarding deze data beschikbaar stellen voor andere machines waar je op inlogt.

    In de praktijk komt het erop neer dat je maar op 1 machine je ssh-key passphrases hoeft in te typen en dmv ssh-agent forwarding dit over alle machines waar je op door inlogt beschikbaar is.
    Ik gebruik nu PuTTYant.exe, deze maakt al gebruik van agent-forwarding aangezien ik op mijn servers dezelfde private key heb staan?

    Ik heb de behoefte niet echt meer om ook nog agent-forwarding te installeren op mijn servers om zodoende direct van servers ook nog op elkaar in te loggen... lijkt mij een beetje overdreven.

  4. #4
    SSH: Agent Forwarding
    geregistreerd gebruiker
    1.075 Berichten
    Ingeschreven
    25/04/04

    Locatie
    -

    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    0 Berichten zijn liked


    Registrar SIDN: -
    KvK nummer: -
    Ondernemingsnummer: -

    Als je er geen behoefte aan het moet je het ook niet gebruiken, het kan wel handig zijn als sommige machines alleen via andere machines toegankelijk zijn (omdat ze bv. op een intern netwerk staat e.d.)

Webhostingtalk.nl

Contact

  • Rokin 113-115
  • 1012 KP, Amsterdam
  • Nederland
  • Contact
© Copyright 2001-2026 Webhostingtalk.nl.
Web Statistics