ssh connection

less than 1 minute read

Install and configuration

$ apt-get install openssh-server
$ sudo subl /etc/ssh/sshd_config
$ sudo service ssh restart

Show gui

On server

config on /etc/ssh/sshd_config

  • X11Forwarding yes
  • X11DisplayOffset 10
  • X11UseLocalhost no
  • ForwardAgent yes
  • ForwardX11 yes
  • ForwardX11Trusted yes

On client

ssh -X remote_host(ip)

test

$ ssh -X user@host_ip
$ xclock

File transfer

cmd:

$ scp <file> <username>@<IP address or hostname>:<Destination>
$ scp -r (recursive) username@server:(remote location) (local location)
$ scp -r (local location) username@server:(remote location)

Comments