Configure SSH Key-Based Authentication on a Linux and Mac


How To Create SSH Keys

The first step to configure SSH key authentication to your server is to generate an SSH key pair on your local computer.

To do this, we can use a special utility called ssh-keygen, which is included with the standard OpenSSH suite of tools. By default, this will create a 2048 bit RSA key pair, which is fine for most uses.

On your local computer, generate a SSH key pair by typing:

The utility will prompt you to select a location for the keys that will be generated. By default, the keys will be stored in the ~/.ssh directory within your user’s home directory. The private key will be called id_rsa and the associated public key will be called Stick with the default location.

Copying your Public Key Using SSH-Copy-ID

The easiest way to copy your public key to the server is to use a utility called ssh-copy-id. For this method to work, you must already have password-based SSH access to your server.

Simply specify the remote host that you would like to connect to and the user account that you have password SSH access to. This is the account where your public SSH key will be copied.

The syntax is:
ssh-copy-id username@remote_host

Special thanks to

Categories : Debian  OS X  Raspberry Pi  Ubuntu

Remote VNC login to Ubuntu 12.04


Installed x11vnc:
apt-get install x11vnc

Create /etc/init/x11vnc.conf file:
start on login-session-start
x11vnc -xkb -noxrecord -noxfixes -noxdamage -display :0 -auth /var/run/lightdm/root/:0 -forever -bg -o /var/log/x11vnc.log
end script

After restart, x11vnc shoud listen on vnc startard port – 5900.

Script is based on upstart event mechanism when Lightdm emits login-session-start event, x11vnc is started.


Categories : Ubuntu

Removing Guest from Ubuntu 11.10


To remove the guest login option you have to modify /etc/lightdm/lightdm.conf.


You can either reboot or restart the service.
sudo restart lightdm

Categories : Ubuntu

Wireshark on Ubuntu 11.10 No Interfaces


When installing Wireshark on Ubuntu I’ve run across the issue of no interfaces. Below are the steps to revolve that issue.

Install the setcap executable
$ sudo apt-get install libcap2-bin

Create wireshark group
$ sudo groupadd wireshark

Add your user name to group wireshark
$ sudo usermod -a -G wireshark YOUR_USER_NAME

Change the dumpcap directory to group wireshark
$ sudo chgrp wireshark /usr/bin/dumpcap

Change mode to 750
$ sudo chmod 750 /usr/bin/dumpcap

Grant capabilities with setcap
$ sudo setcap cap_net_raw,cap_net_admin=eip /usr/bin/dumpcap

Verify the change
$ sudo getcap /usr/bin/dumpcap

Categories : Ubuntu

Java version of SAP GUI available from SAP


If you are looking for the latest version of the java SAP GUI, the link is below.

Categories : Debian  OS X  SAP  OS X  Snow Leopard  Ubuntu
Tags :