Lantronix SCS1620 Guia do Utilizador Página 101

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 141
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 100
SCSxx05/SCSxx20 User Guide 8: Commands
8-14
Using Single Signon to Save Time
To automate and save time, try this:
[max@miraclehut ~]$ ssh-agent /bin/bash
[max@miraclehut max]$ ssh-add
Need passphrase for /home/max/.ssh/identity (max@miraclehut).
Enter passphrase:
Identity added: /home/max/.ssh/identity (max@miraclehut)
[max@miraclehut max]$ for target_host in host1 host2 host3
host4 host5 host[678] host9; do
> ssh root@$target_host "./tripwire --initialize"
> ssh root@$target_host "echo \"This host protected by
Tripwire\" >> /etc/motd"
> done
This process allows me to type in my passphrase once, and then run two commands, on
nine hosts, without having to type any more passphrases. I can walk away now, content
that I don't have to manually start Tripwire on each of the nine hosts. I can use more "for"
loops now, since I don't have to re-enter my passphrase again until I exit out of the bash
shell! This saves tons of time, without the insecurity of rsh or rlogin's rhost authentication.
Mounting File Systems During Boot
You can configure the SCS to mount a file system at boot time. Configure this
feature from the bash shell as the root user. To access the bash shell as root
user:
1. Log in as sysadmin. The command-line prompt displays.
2. Type bash to start a shell process (notice: sysadmin level = $).
3. su (switch user) to root level; enter the existing root password (default =
root). After the system accepts the password, notice that the root level =
sysadmin@ # (e.g., [root@SCS1620 /var/tmp]#?)
Vista de página 100
1 2 ... 96 97 98 99 100 101 102 103 104 105 106 ... 140 141

Comentários a estes Manuais

Sem comentários