Ask Your Question
1

Error during live migration :Exit 255 host permanentaly(EDSCA) added to lost of known host

asked 2015-03-10 00:44:56 -0500

Queen gravatar image

i haved removed all .ssh/known_hosts file including var/lib/nova/.ssh/known_hosts.Unable to solve still .I tried command: "ssh-keygen -R hostname".but it give a message :"Known_host : no sucj directory is present".how to solve this problem??

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-09-04 03:19:36 -0500

updated 2015-09-04 03:20:53 -0500

I had the same error and resolved executing the following steps:

generate the public private keys

ssh-keygen -t dsa -P '' -f ~/.ssh/id_dsa

copy the public key to every host you will connect TO:

scp ~/.ssh/id_dsa.pub my_user_id@1.2.3.4:~/.ssh/id_dsa.pub

(this should prompt you for a password)

shell into the remote machine

ssh my_user_id@1.2.3.4

authorize the key by adding it to the list of authorized keys

cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys

log out of the current shell

exit

test that you can log in with no password

ssh -i ~/.ssh/id_dsa 1.2.3.4

if this prompts for a password ensure the remote user is the owner of the pub key http://hortonworks.com/kb/generating-ssh-keys-for-passwordless-login/ ((source))

This is from compute1 to compute2 nodes and from controller to compute2 node. Also, I had to allow nova user permissions to write:

If you want to change the user owning this file or directory (folder), you will have to use the command chown. For instance, if you run

`sudo chown username: myfolder`

the user owning myfolder will be username. Then you can execute

`sudo chmod u+w myfolder`

to add the write permission to the username user.

But if you want to add this user to the group associated with "myfolder", you can run

`sudo usermod -a -G groupname username`

and then execute

`sudo chmod g+w myfolder`

to add the write permission to the group.

http://askubuntu.com/questions/487527/give-specific-user-permission-to-write-to-a-folder-using-w-notation ((source))

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2015-03-10 00:44:56 -0500

Seen: 700 times

Last updated: Sep 04 '15