Open SSH

From WickyWiki
Revision as of 17:00, 22 January 2012 by Wilbert (talk | contribs) (Created page with "Note: having Ubuntu Server in a virtual machine it is best to access it from a terminal with ssh. This way you will have basic copy and paste functionality with your host. == In...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Note: having Ubuntu Server in a virtual machine it is best to access it from a terminal with ssh. This way you will have basic copy and paste functionality with your host.

Install

sudo apt-get install openssh-server openssh-client

Login

When you login with SSH for the first time, it will validate and store a key.

ssh 192.168.1.10 -l someuser

Copy files

SSH copy dir1 from the host (192.168.1.8) to the current directory within the SSH session:

scp -r hostuser@192.168.1.8:/home/ubuntu/dir1 .

Text editor

Nano is a easy to use text editor that you can use in a terminal. Alternatives are vi and ed.

nano /dir1/file1