Friday, November 29, 2013

SSH : pass wordless login.

[rajusa10@RHEL-6 ~]$ ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/home/rajusa10/.ssh/id_rsa):
Created directory '/home/rajusa10/.ssh'.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/rajusa10/.ssh/id_rsa.
Your public key has been saved in /home/rajusa10/.ssh/id_rsa.pub.
The key fingerprint is:
7a:69:78:8a:b1:a8:1c:a7:30:6e:8d:58:f3:02:b9:7c rajusa10@RHEL-6
The key's randomart image is:
+--[ RSA 2048]----+
|                 |
|                 |
|                 |
|                 |
| .      S        |
|o o    o .       |
|==o+. o =        |
|*==E.+ =         |
|o=o.o .          |
+-----------------+


cat .ssh/id_rsa.pub | ssh rajusa10@dev01 'cat >> .ssh/authorized_keys'

[rajusa10@RHEL-6 ~]$ ssh dev01

|-----------------------------------------------------------------------------|

Last login: Thu Nov 21 11:47:21 2013 from gettoitwellorg.com
-bash-3.2$

Monday, November 18, 2013

New location for nproc limit in RHEL-6 --> "sudo: unable to change to runas uid: too many processes"

-bash-4.1$ cat /etc/security/limits.d/90-nproc.conf

# Default limit for number of user's processes to prevent
# accidental fork bombs.
# See rhbz #432903 for reasoning.

#*          soft    nproc     1024
*          soft    nproc     unlimited
root       soft    nproc     unlimited

Wednesday, November 13, 2013

linux wget equivalent in solaris ?

/usr/sfw/bin/wget http://download.com/software