ssh: test.com: Name or service not known error

Discussion in 'Installation/Configuration' started by gg234, Nov 30, 2005.

  1. gg234

    gg234 New Member

  2. falko

    falko Super Moderator Howtoforge Staff Moderator HowtoForge Supporter ISPConfig Developer

    root@test.com is not an email address!
    The part after the @ sign must be the host name of the server to which you want to copy the public key. Of coure, it must exist in DNS. If it doesn't, you can also use the IP address, e.g.
    Code:
    ssh-copy-id -i ~/.ssh/id_rsa.pub root@192.168.0.100
     
  3. themachine

    themachine New Member HowtoForge Supporter ISPConfig Developer

    Yes... you haven taken it slightly to literally... you need to substitute your server address for "test.com".
     
  4. SSH RSA and DRA key Genating

    Follow the below step by step procedure and do let me know if you have any questions.

    [root@server ~]# ssh-copy-id -i .ssh/id_rsa.pub 192.168.1.200
    15
    The authenticity of host '192.168.1.200 (192.168.1.200)' can't be established.
    RSA key fingerprint is b3:4b:e6:a4:78:ec:34:46:39:db:dd:aa:47:d0:23:41.
    Are you sure you want to continue connecting (yes/no)? yes
    Warning: Permanently added '192.168.1.200' (RSA) to the list of known hosts.
    root@192.168.1.200's password:
    Now try logging into the machine, with "ssh '192.168.1.200'", and check in:

    .ssh/authorized_keys

    to make sure we haven't added extra keys that you weren't expecting.

    Find your generated key here

    [root@server ~]# cat .ssh/authorized_keys | less

    [root@server ~]# cat .ssh/known_hosts

    Now try to login into your client PC it will not prompt password.

    [root@server ~]# ssh 192.168.1.200
    Last login: Sun May 13 15:48:35 2012 from server.mahesh.com

    ##### Remove default access #########

    Deleted the keys from both configuration files.

    [root@server ~]# vi .ssh/known_hosts

    [root@server ~]# vi .ssh/authorized_keys



    http://networking4kings.blogspot.in/2012/12/ssh-configuration.html

    Thank You!

    Regards,
    Mahesh[/QUOTE]
     

Share This Page