TECH · Unix/Linux

SSH takes long time in Solaris System

While trying to ssh to solaris 11 machine, it takes sometime to give a prompt(more than usual). The issue is mostly related to DNS lookup over the network. Please check below details and how i fixed the issue.

root@cms-cluster1:~# uname -a
SunOS cms-cluster1 5.11 11.1 sun4v sparc sun4v
root@cms-cluster1:~# ssh -V
Sun_SSH_2.2, SSH protocols 1.5/2.0, OpenSSL 0x100000bf
root@cms-cluster1:~# echo “GSSAPIAuthentication no” >> /etc/ssh/sshd_config
root@cms-cluster1:~# echo “LookupClientHostnames no” >> /etc/ssh/sshd_config
root@cms-cluster1:~# svcadm restart ssh




SSH without password Linux/Unix

Uncomment the following lines from the /usr/local/etc/ssh_config (or /etc/ssh/ssh_config) file:
RSAAuthentication yes
IdentityFile ~/.ssh/id_rsa

Now, let’s assume ServerA and ServerB both run the ssh daemons.To allow ServerA to SSH to ServerB without password,

please try the following:

# ssh-keygen -t rsa

This generates two files and id_rsa

Now, this needs to be copied to the authorized_keys file on ServerB

# scp ServerB:~/.ssh/
# cat >> authorized_keys


Send SNMP TRAP on Solaris 10

Send SNMP trace on Solaris 10:

snmp_trapsend -e  -a “. STRING (Test trap)” -T4

[-h host]             (default = localhost)
[-c community]        (default = public)
[-e enterprise | -E enterprise_str]   (default =
[-g generic#]         (range 0..6, default = 6)
[-s specific#]        (default = 1)
[-i ipaddr]           (default = localhost)
[-p trap_port]        (default = 162)
[-t timestamp]        (a time in unix-time format, default is uptime)
-a “object-id object-type ( object-value )”
[-T trace-level]      (range 0..4, default = 0)