LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 12-03-2007, 01:13 PM   #1
CMTeam@Broadridge
LQ Newbie
 
Registered: Dec 2007
Location: Wheat Ridge, CO
Distribution: Pony Express
Posts: 3

Rep: Reputation: 0
ssh_keygen- user@hostname vs. user@IPAddress ?


All;

I'm running sftp from machine alpha. Machine alpha's "authorized_keys" file contains machine beta's public key. Machine beta's public key has user@hostname.domainname embedded at the end. Machine alpha only recognizes machine beta as it's IP Address, not by it's hostname.

Running sftp from alpha using user@nnn.nnn.nnn.nnn works, whereas user@hostname and user@hostname.domainname don't. So, I can do scripted gets logged on beta from alpha, but cannot do scripted puts logged on alpha to beta.

Is there a way to get ssh_keygen to generate a key that has user@IPAddress embedded in it rather than user@hostname.domainname ? Or, is there another alternative to this hostname/IPAddress public key mismatch ?

Your prompt cooperation is greatly appreciated, Neil
 
Old 12-03-2007, 03:02 PM   #2
forrestt
Senior Member
 
Registered: Mar 2004
Location: Cary, NC, USA
Distribution: Fedora, Kubuntu, RedHat, CentOS, SuSe
Posts: 1,288

Rep: Reputation: 99
Two things to try:

1) put "nnn.nnn.nnn.nnn hostname.domainname" in your /etc/hosts file on alpha.

2) change user@hostname.domainname to user@nnn.nnn.nnn.nnn in your authorized_keys file.

HTH

Forrest
 
  


Reply

Tags
domain, embedded, ssh public key, user



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
ssh_keygen DNS IP Address vs. hostname ? CMTeam@Broadridge LinuxQuestions.org Member Intro 3 12-03-2007 01:17 PM
Postfix unable to deliver mail because user@virtualdomain becomes user@hostname azrael808 Linux - Networking 0 04-29-2006 12:35 PM
ipaddress and hostname groverrajiv Linux - Networking 1 04-24-2004 08:29 AM
I can't get an ipaddress in a non root user in slackware 9 glennyboi Slackware 6 12-18-2003 09:16 PM
Changing hostname and ipaddress hemanth_13 Solaris / OpenSolaris 6 07-24-2003 07:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 05:55 PM.

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