• Sign in
  • Sign up 
  • Welcome
  • FAQ
  • Block Explorer 
  • Night Mode
  • Stolen Accounts Recovery 
  • Change Account Password 
  • Vote for Witnesses 
  • Hive Proposals 
  • OpenHive Chat 
  • Developer Portal 
  • Hive Whitepaper 
  • Privacy Policy
  • Terms of Service
logo
  • Posts
  • Proposals
  • Witnesses
  • Our dApps
LoginSign up

Get public key from pemfile handy for AWS EC2 Users

shebeleeza (48)in #linux • 7 years ago

See the question on stackoverflow:
https://stackoverflow.com/questions/38401719/how-do-i-get-the-public-key-of-an-pem-file

$ cd $HOME/.ssh

$ chmod 600 somekey.pem

$ ssh-keygen -f somekey.pem -y > somekey.pub

Now add pem key's public key to a new server:

$ ssh-copy-id -i $HOME/.ssh/somekey.pub someuser@yourserver.com
#aws #devops
7 years ago in #linux by shebeleeza (48)
$0.00
    6 votes
    • shebeleeza
    • netscape101
    • berneisanders
    • throwawayaccount
    • roloyolo
    • carloscaat
    Reply 0
    Sort:  
  • Trending
    • Trending
    • Votes
    • Age