>

2016년 8월 29일 월요일

Simple Setup: ssh login without password from Mac to Linux


Step 1. In your Mac computer. Use terminal of course.

$ ssh-keygen 

Some questions will be provided. Just press Enter key.

Step 2. Copy ~/.ssh/id_rsa.pub to Linux

$ cat ~/.ssh/id_rsa.pub | ssh user_id@your.linux.machine "umask 077; mkdir -p .ssh ; cat >> .ssh/authorized_keys"

You will be asked to provide password for user_id@your.linux.machine.

Step 3. ssh login to Linux machine without password.

$ ssh your.linux.machine

Done.

2016년 8월 17일 수요일

ssh X11 Forwarding Ubuntu Server Setting


$ sudo vi /usr/share/lightdm/lightdm.conf.d/50-xserver-command.conf 
  1 [SeatDefaults]
  2 # Dump core
  3 xserver-command=X -core

  4 xserver-allow-tcp=true

* At the client side (Not sure if X11 needs be run before the followings)
$ xhost +
$ ssh -X user@ubuntu.host