$ ssh-keygen -t dsa
then i shall have in /home/peter/.ssh a pair of keys (public key: id_dsa and private key: id_dsa.pub)
#mkdir peter/.ssh
copy my public key here with the name authorized_keys
I can login romi safer with my ssh keys
//login for the first time I need to type 111111 to active to key
//but if I need to login in other machines I still need the former passwd: peter1983
when I reinstall my local OS, I need to do the above 3 step again.
but when I am trying to copy sth form romi to my local machine, I see warning related to romi: ./ssh/knownhost
the solution is simply deleting this file, it will be created again automatically
$ sudo apt-get install openssh-server $sudo /etc/init.d/networking restart
ON fedora or asianux
#service sshd start/status/stopo #vim /etc/ssh/sshd_config
$ssh-keygen
$vim /etc/hosts
add
10.1.0,155 test
$ssh test without using passwd
#PermitRootLogin no PermitRootLogin yes
and do this
service sshd start chkconfig --level 345 sshd on ----------set boot time start
when I try to ssh 67, which is the new vmware machine on 73.
I see this
[root@dhcp25 ~]# ssh 10.1.0.56 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!