LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 09-14-2004, 06:35 AM   #1
six_fingerz
LQ Newbie
 
Registered: Jan 2004
Distribution: Mandrake 9.2
Posts: 5

Rep: Reputation: 0
how do I determine my hostname?


Sorry if this is a silly question but I can't figure out what the actual hostname is of my computer.

If I type "hostname" I get "linux.site" which I guess can be changed in /etc/HOSTNAME, but what if I want to connect to my computer from another one using ssh?

btw this is for a suse 9.1 system...

thanx!
 
Old 09-14-2004, 06:45 AM   #2
esteeven
Senior Member
 
Registered: Oct 2001
Location: Bristol UK
Distribution: Arch Ubuntu Slackware
Posts: 1,020

Rep: Reputation: 41
Is the other computer on your LAN? If it is, you can ssh directly to it using its ip. On the first box, as root, type "ifconfig" and you'll see your local address. On the other box, type ssh "your local address" --- and you should be able to log in.
 
Old 09-14-2004, 08:26 AM   #3
six_fingerz
LQ Newbie
 
Registered: Jan 2004
Distribution: Mandrake 9.2
Posts: 5

Original Poster
Rep: Reputation: 0
One computer is at work and the other is at home (the one I need to connec to).

I thought I'd be able to type

ssh <username>@<hostname>

to connect, and I'm sure the hostname should contain some info about my service provider.
 
Old 09-14-2004, 08:38 AM   #4
DrNeil
Member
 
Registered: Aug 2004
Location: Scotland
Distribution: Debian, Suse, Knoppix, Dyna:bolic, Mandrake [couple of years ago], Slackware [1993 or so]
Posts: 150

Rep: Reputation: 15
Quote:
Originally posted by six_fingerz

ssh <username>@<hostname>
ssh -l username hostname

hostname being likely something like your ips customer hostname and NOT the one you entered at home, unless you have a domain server running there.

so you need to figure out the IP your ISP gave you.

Do you have an email you send from home, access to a webserverlog or did you log into a unix server. Maybe last will give you that.

Next issue port 22 being open from outside, mine isn't at home.

Loads of issues. sowwy
 
Old 09-14-2004, 08:48 AM   #5
esteeven
Senior Member
 
Registered: Oct 2001
Location: Bristol UK
Distribution: Arch Ubuntu Slackware
Posts: 1,020

Rep: Reputation: 41
From home, go to www.whatismyip.com (I think that's correct) and that should tell you your ip.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
squid FATAL: Could not determine fully qualified hostname. Please set 'visible_hostn tarakthakor Linux - Networking 5 12-04-2010 05:29 AM
How to determine my HW by SW theonebeyond Linux - Hardware 2 09-09-2004 04:00 AM
router unable to determine hostname kodon Linux - Wireless Networking 0 09-08-2004 11:57 AM
Can someone tell me a command to determine the hostname of an IP on the network? brow27 Linux - Newbie 4 05-20-2004 03:28 PM
hostname command vs. $HOSTNAME env. variable Silly22 Linux - Networking 2 03-29-2002 05:01 PM


All times are GMT -5. The time now is 05:38 AM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration