hi,
> interfaces that I will be using for this.  I would like to be pre-authorised 
> as root to scp/ssh from one machine to the other. (i.e. without having to 
> type in a password)
> I have browsed through ssh docs for days and have yet to come up with a 
> working solution.   I think that it should be a very simple thing.
> 
try out this .it might help u out

steps

1. generate a pair of public/private keys using
        ssh-keygen -t rsa
   this will generate your id_rsa and id_rsa.pub in .ssh dir

2. copy the id_rsa.pub to remote .ssh directory as authorized_keys2
     scp ~rk/.ssh/id_rsa.pub rk@monster:~rk/.ssh/authorized_keys

3 public key based authentication is set up
However, you need a program that manages your keys for you called an agent. 
You need to start the agent, tell it your passphrase, and hook up to the 
agent whenever you need to connect to the remote machine.

4.You logon to a console and then startx as in say, an out-of-the-box
 Linux installation. You should figure out what exactly has to be done
 for your specific machine's X
 edit .profile file-->
                alias startx='ssh-agent startx'

5. edit .xinitrc file -->
        DISPLAY="localmachine.cs.umd.edu:0"
        SSH_ASKPASS="/usr/libexec/openssh/x11-ssh-askpass"
        ssh-add</dev/null
        #change the following to whatever window manager you like
        startkde
6. As a fringe benefit, you can execute any GUI based programs on the remote 
machine for free, no setting up $DISPLAY , no need to xhost+ etc.


-cheers

rk
--
The Exocore Professional Linux Administrator Workshop
July 18 & 19, 2002, Hotel Le Meridien, Bangalore.
Details at http://www.exocore.com/eplaws

---------------------------------------------
Ramakrishna         | [EMAIL PROTECTED]                    
Exocore Consulting  | http://www.exocore.com            
Bangalore, India    | +91 (80) 344-0397 |
---------------------------------------------



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to