Re: ssh without password does not work

From: Harry Putnam (reader_at_newsguy.com)
Date: 11/29/03

  • Next message: Nicholas C. Weaver: "My Agent Wishlist"
    Date: Fri, 28 Nov 2003 18:05:38 -0600
    
    

    thomas.schwaerzler@gmx.at (tom) writes:

    > on localhost:
    > cd .ssh
    > ssh-keygen -t rsa
    > ssh-keygen -t dsa
    > scp *.pub user@remotehost:~/
    > ssh remotehost -l user
    > cat id_rsa.pub >> .ssh/authorized_keys
    > cat id_dsa.pub >> .ssh/authorized_keys
    > rm id_rsa.pub id_dsa.pub
    > exit

    After these steps if you ssh from localhost to remote show should be
    prompted for `pass phrase' instead of password. That would indicate
    things are set up right so far.

    Then I believe you need to start a new shell with ssh-agent
       ssh-agent bash (from console mode)
       and ssh-add
    the ID to the new shell by typing:
       ssh-add (and supplying the passphrase)

    This new shell should be able to communicate with remote with no
    further passwords being exchanged. That is, from the new shell
        `ssh remote' should just land you on the remote.


  • Next message: Nicholas C. Weaver: "My Agent Wishlist"

    Relevant Pages

    • Re: Netcat (NC) Secure Remote Connections via authenication
      ... It's never a good idea to just leave ports ... 1-way from local to remote ... localapp | ssh remotehost "remoteapp" ... Evaluating SSL VPNs' Consider NEOTERIS, chosen as leader by top analysts! ...
      (Security-Basics)
    • Re: Task Manager and Remote Desktop
      ... How about using parameters of RDP file to launch the app on remote logon? ... If acceptable, if your app locks up, you disconnect the session and create a new one that will launch the Task Manager. ... Or have a target local agent that checks periodically if your shell app is locked up and if so, ...
      (microsoft.public.windowsxp.embedded)
    • Re: how to set timeout for read command
      ... > The shell is asked to do a number of things. ... This could take a very long time if the remote machine is not ... > Line 7 kills off the background subshell, ... forward quote before (sleep.... ...
      (comp.unix.shell)
    • [Full-disclosure] multihtml exploit vulnerability advisory
      ... Category: Remote for Remote ... The shell implementation within the exploit contains a format string ... We have not contacted banshee at r00tabega security labs ... # write our shellcode into the environment ...
      (Full-Disclosure)
    • Re: waitFor and return (very strange)
      ... > rsh started by command line or java.Must i set an hide variable? ... treated differently by the remote shell. ...
      (comp.lang.java.programmer)