:: ssh [scp] login without password authentication

41 sec read

:: install dependency
installing ssh-client (Debian)

# aptitude install openssh-client

:: configure ssh / scp login without password authentication
+ generate dsa keygen

[ tox : ~ ]$ ssh-keygen -t dsa
Generating public/private dsa key pair.
Enter file in which to save the key (/home/tox/.ssh/id_dsa):
Enter passphrase (empty for no passphrase): [ just return/enter ]
Enter same passphrase again: [ just return/enter ]
Your identification has been saved in /home/tox/.ssh/id_dsa.
Your public key has been saved in /home/tox/.ssh/id_dsa.pub.
The key fingerprint is:
e0:be:0a:93:b9:01:d2:4a:18:25:fa:d8:8b:48:13:9b tox@blackonsole
The key’s randomart image is:
+–[ DSA 1024]—-+
|. . |
|.o |
|o. . |
|.*+ . . |
|=E+ . S |
|=+.+ . |
|+ B . |
| = . |
| . … |
+—————–+

+ copy [ scp ] dsa keygen to SSH Server (10.100.100.35)

[ tox : ~ ]$ scp .ssh/id_dsa.pub [email protected]:~username/.ssh/authorized_keys
Password : [ usernamepass ]

make sure the .ssh directory is at the username home directory on 10.100.100.35.

:: testink
+ ssh

[ tox : ~ ]$ ssh [email protected]
Last login: Wed Nov 11 10:40:56 2009 from 10.100.100.33
Have a lot of fun…
[ username: ~ ]$ whoami
username

+ scp

[ tox : ~ ]$ scp [email protected]:/tmp/test /tmp
test 100% 0 0.0KB/s 00:00
[ tox : ~ ]$ ls -l /tmp/test
-rw-r–r– 1 tox tox 0 2009-11-11 20:22 /tmp/test

:: links
+ google

How to fix problem with the editor ‘vi’

:: git error with vi error: There was a problem with the editor 'vi'   :: how to fix the problem 0. check path...
Sysadmin.ID
10 sec read

Apache :: MP4 Streaming

:: How to Enable mp4 Streaming in Apache + Installing mod h624 streaming wget //h264.code-shop.com/download/apache_mod_h264_streaming-2.2.7.tar.gz tar -xzf apache_mod_h264_streaming-2.2.7.tar.gz cd mod_h264_streaming-2.2.7/ ./configure --with-apxs=`which apxs2` make...
Sysadmin.ID
18 sec read

Apache :: Flash / FLV Streaming

:: How to Configure Apache for FLV Streaming + Installing mod_flvx wget //people.apache.org/~pquerna/modules/mod_flvx.c which apxs /usr/bin/apxs /usr/bin/apxs -cia mod_flvx.c + setup mod_flvx in http.conf...
Sysadmin.ID
15 sec read

Leave a Reply

Your email address will not be published. Required fields are marked *