Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 11-04-2008, 01:27 PM   #1
LQ Newbie
Registered: Oct 2008
Posts: 21

Rep: Reputation: 15
how to use of ftp in linux to copy ssh pub key to another host

Hi I m new to linux and have a querry, hope i ll get the answer here.

I have two virtual macines in VMware for RHEL5 and I want to etablish ssh connection, for that i have created the authorization keys and now i want to copy it to remote host. For that can i use ftp? If yes how to establish connection.
Pls tell me step by step.
Old 11-04-2008, 04:24 PM   #2
Registered: May 2005
Location: St. Louis, MO
Distribution: CentOS7
Posts: 267

Rep: Reputation: 58
I use scp to copy my public keys. Since ssh has to be set up anyway, it seems the easiest way. try:
scp publickeyfile you@remote.hostublickey
add it to your authorized_keys file by logging into the remote as you and running $ cat publickey >>.ssh/authorized_keys
If you have only one authorized_key, I would guess you could just $ mv publickey .ssh/authorized_keys, but I have several different systems.
Doing the same thing in reverse from the remote to the local allows ssh host either way without passwords.



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
How to know/find out/see my ssh host key khaos83 Red Hat 4 12-26-2007 03:35 AM
Using SSH to copy web site to new host longstockings Linux - Server 8 03-30-2007 06:48 AM
ssh Host Key ziox Linux - Networking 6 02-07-2005 02:57 PM
to 2.6.10 from 2.4.26 | ssh client | Host key verification failed kaN5300 Slackware 6 01-05-2005 10:04 PM
SSH rejects my host key for version 2 only. Travis86 Linux - Networking 19 08-08-2003 03:48 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:31 PM.

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