Line 3: | Line 3: | ||
*To create a public key, from terminal do | *To create a public key, from terminal do | ||
ssh-keygen -t rsa | ssh-keygen -t rsa | ||
− | + | <fb:share-button href="http://developers.facebook.com/docs/plugins/" type="button_count"></fb:share-button> | |
*To copy to authorized_hosts file do | *To copy to authorized_hosts file do | ||
cat ~/.ssh/id_rsa.pub | ssh serveruser@server 'cat >> ~/.ssh/authorized_keys' | cat ~/.ssh/id_rsa.pub | ssh serveruser@server 'cat >> ~/.ssh/authorized_keys' |
The basis of this is that your ID must be in the list of authorized hosts in the server. So, for password-less login to work, generate your public key, and append it to the authorized_hosts file in the server.
ssh-keygen -t rsa
<fb:share-button href="http://developers.facebook.com/docs/plugins/" type="button_count"></fb:share-button>
cat ~/.ssh/id_rsa.pub | ssh serveruser@server 'cat >> ~/.ssh/authorized_keys'
Test by
ssh serveruser@server
If no password is asked, everything worked fine.
You can also do the following command to copy the key
ssh-copy-id serveruser@serverblog comments powered by Disqus
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=237807366384458"; fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
The basis of this is that your ID must be in the list of authorized hosts in the server. So, for password-less login to work, generate your public key, and append it to the authorized_hosts file in the server.
ssh-keygen -t rsa
cat ~/.ssh/id_rsa.pub | ssh serveruser@server 'cat >> ~/.ssh/authorized_keys'
Test by
ssh serveruser@server
If no password is asked, everything worked fine.
You can also do the following command to copy the key
ssh-copy-id serveruser@serverblog comments powered by Disqus
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=237807366384458"; fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>