LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General
User Name
Password
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices


Reply
  Search this Thread
Old 10-03-2019, 06:51 AM   #1
murphyola
LQ Newbie
 
Registered: Sep 2014
Posts: 2
Blog Entries: 1

Rep: Reputation: Disabled
Ssh-Keygen copy error


Hi Team,I generated a key using ssh-keygen. I used ssh-copy-id like this
ssh-copy-id -i maruf@192.168.122.7 to copy to node server.But i got this error
/bin/ssh-copy-id: ERROR: ssh: connect to host 192.168.122.7 port 22: connection refused.

i can ping both servers from each order. The main server is running on centos while the node is on Ubuntu. Please i need assistance.
 
Old 10-03-2019, 07:15 AM   #2
ntubski
Senior Member
 
Registered: Nov 2005
Distribution: Debian, Arch
Posts: 3,780

Rep: Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081
Quote:
Originally Posted by murphyola View Post
/bin/ssh-copy-id: ERROR: ssh: connect to host 192.168.122.7 port 22: connection refused.

i can ping both servers from each order.
Can you ssh into both servers from each other? Perhaps you need to open port 22 in the firewall?
 
Old 10-03-2019, 08:05 AM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,675

Rep: Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892
In addition, make sure the ssh server is running on the Ubuntu server. It is not enabled to start by default.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] ssh-keygen for auto ssh login not working R00ts Linux - Software 26 09-23-2012 01:40 PM
Error: Cannot find 'ssh-keygen' in '/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin' venu.navat Linux - Software 3 03-08-2012 04:00 AM
SSH not working after ssh-keygen due to lack of entropy grob115 Linux - Security 8 08-28-2010 11:33 AM
ssh-agent, ssh-add and ssh-keygen AND CVS raylpc Linux - General 2 11-19-2008 02:50 AM
sftp and ssh-keygen help please grayhost Linux - Newbie 2 06-26-2003 05:51 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > General

All times are GMT -5. The time now is 03:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration