Configure SSH Key-Based Authentication on a Linux and Mac

2017.08.24

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:
ssh-keygen

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 id_rsa.pub. 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 https://www.digitalocean.com/community/tutorials/how-to-configure-ssh-key-based-authentication-on-a-linux-server

Categories : Debian  OS X  Raspberry Pi  Ubuntu

Remote VNC login to Ubuntu 12.04

2012.04.23

Installed x11vnc:
apt-get install x11vnc

Create /etc/init/x11vnc.conf file:
start on login-session-start
script
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.

Reference: http://mlepicki.com/2011/10/remote-vnc-login-to-ubuntu-11-10/

Categories : Ubuntu

Removing Guest from Ubuntu 11.10

2011.11.01

To remove the guest login option you have to modify /etc/lightdm/lightdm.conf.
original
[SeatDefaults]
greeter-session=unity-greeter
user-session=ubuntu

modified
[SeatDefaults]
greeter-session=unity-greeter
user-session=ubuntu
allow-guest=false

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

Categories : Ubuntu

Wireshark on Ubuntu 11.10 No Interfaces

2011.10.26

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

2010.04.27

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

ftp://ftp.sap.com/pub/sapgui/java/

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