02.01.2016 Views

Linux

linux_admin_text-1.0.0_2

linux_admin_text-1.0.0_2

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

1 <br />

[sshuser@client ~]$ ssh-copy-id sshuser@server<br />

sshuser@server's password:<br />

Now try logging into the machine, with "ssh 'sshuser@server'", and check in:<br />

.ssh/authorized_keys<br />

to make sure we haven't added extra keys that you weren't expecting.<br />

SSH <br />

[sshuser@client ~]$ ssh sshuser@server<br />

Enter passphrase for key '/home/sshuser/.ssh/id_rsa': <br />

Last login: Tue Jan 6 11:01:52 2015 from client<br />

[sshuser@server ~]$<br />

OpenSSH <br />

<br />

1.4.12 scp <br />

scp SSH <br />

<br />

<br />

testdir <br />

scp -r <br />

<br />

[sshuser@client ~]$ mkdir testdir<br />

[sshuser@client ~]$ cd testdir<br />

[sshuser@client testdir]$ touch testfile1 testfile2<br />

[sshuser@client testdir]$ ls<br />

testfile1 testfile2<br />

[sshuser@client testdir]$ cd<br />

[sshuser@client ~]$ scp -r testdir sshuser@server:~<br />

Enter passphrase for key '/home/sshuser/.ssh/id_rsa': <br />

testfile1 100% 0 0.0KB/s 00:00<br />

testfile2 100% 0 0.0KB/s 00:00<br />

<br />

www.lpi.or.jp 27 (C) LPI-Japan

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!