PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Thursday, October 6, 2022

[FIXED] How can I add my host to known hosts manually?

 October 06, 2022     keyscan, known-hosts, ssh, terminal     No comments   

Issue

I try to add my host to known host via terminal:

ssh-keyscan -H 195.118.254.45 >> ~/.ssh/known_hosts

But when I open my known hosts file with text edit, then it is still empty. Nothing was added.


Solution

The working solution for me was:

ssh-keyscan -H -p 2222 -t ecdsa 195.118.254.45 >> ~/.ssh/known_hosts

I had to define the correct port



Answered By - peace_love
Answer Checked By - Clifford M. (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing