ssh

All posts tagged ssh

For a clean output on the IP address for nslookup, create a file with the list of hosts be lookup and run: # for i in `cat /tmp/list`; do echo -n $i": " ; getent hosts $i | awk '{ print $1 }'; done To see the memory consuption in Solaris # vmstat 1 2 |tail -1 | awk '{ print $5/1024, "MB"}'   To run a list of commands (i.e. over SSH) for i in `cat file.host.list` ; do ssh -o ConnectTimeout=5 $i "$(<cmd.txt)" 1>> output.out; done Where cmd.txt contains a list of commands separated Read more...
Enabling SSH service from command line in MacOS can be done using with some brief commands without using the GUI (Sytem preferences). To do that, open an Terminal window and run the following commands: $ systemsetup -setremotelogin on $ sudo sudo launchctl load -w /System/Library/LaunchDaemons/ssh.plist To disable remote login (SSH): $ systemsetup -setremotelogin off Do you really want to turn remote login off? If you do, you will lose this connection and can only turn it back on locally Read more...
With SSH you can create trust relationships between machines to connect between them without asking for password to be able to install Veritas software or just to connect quickly to remote systems. First, you must create the Secret and Public key with this command: # ssh-keygen -t dsa -f $HOME/.ssh/id_dsa -P '' You can choose dsa or rsa as type of ssh protocol version (should use the same as on sshd_config file). rsa is used with protocol 1 in ssh. dsa is used with protocol 2 in ssh. It Read more...