Telnet and Ftp

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

 



The accounts don't have to have the same name for this to work. I can connect 
(as root) to other machines on my LAN:
[summer@numbat summer]$ ssh -l root gw
Last login: Sat Aug 17 14:27:26 2002 from numbat.computerdatasafe.com.au
[root@gw root]#

I actually have this set up as a function in ~/.bashrc:
[summer@numbat summer]$ grep -A4 root .bashrc
function root()
        {
                RH=$1
                shift
                [ -z "$RH" ] && RH=${HOSTNAME}
                ssh -t -l root $RH $@
                return $?
        }

so that I can access the machine:
[summer@numbat summer]$ root gw w
 12:08pm  up 42 days,  1:03, 10 users,  load average: 0.28, 0.11, 0.09
USER     TTY      FROM              LOGIN@   IDLE   JCPU   PCPU  WHAT
<snip>
valhalla pts/9    numbat.computerd Fri 4pm 43:34m  0.06s  0.06s  -bash
root     pts/10   numbat.computerd 12:08pm  1.00s  0.04s  0.04s  w
Connection to gw closed.
[summer@numbat summer]$ root gw
Last login: Sun Aug 18 12:08:47 2002 from numbat.computerdatasafe.com.au
[root@gw root]#

The root command without operands logs in as root on my own machine.


On Sunday 18 August 2002 00:21, Martin McCormick wrote:
> If the system you are connecting to via
> ssh is one where you also have an account with the same name, you
> can exchange public keys between the .ssh directory you have on
> each system and make it so you don't even have to use a password
> when jumping from one system to another.

-- 


Cheers
John.

Please, no off-list mail. You will fall foul of my spam treatment.
Join the "Linux Support by Small Businesses" list at 
http://mail.computerdatasafe.com.au/mailman/listinfo/lssb






[Index of Archives]     [Linux Speakup]     [Fedora]     [Linux Kernel]     [Yosemite News]     [Big List of Linux Books]