LinuxQuestions.org
Visit Jeremy's Blog.
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
  Search this Thread
Old 09-11-2007, 08:19 AM   #1
shawniecas
LQ Newbie
 
Registered: May 2007
Posts: 24

Rep: Reputation: 15
Setting up a Linux network


Hi, I am still relatively new at Linux, and I am starting a new internship. They know I don't have much experience, but they put me in charge of setting up the new network because they don't know Linux at all yet...fun fun. Now, I am trying to get ssh to work first off. I would imagine that I probably have to add the hostnames and IP addresses to /etc/hosts on the server. This is what the network administrator did at my last internship, and I was never showed how to do this stuff. Any help would be much appreciated. Thanks
 
Old 09-11-2007, 09:57 AM   #2
serafean
Member
 
Registered: Mar 2006
Location: Czech Republic
Distribution: Gentoo, Chakra
Posts: 985
Blog Entries: 14

Rep: Reputation: 135Reputation: 135
Hi, to get ssh to work, all you need is an open port 22 on/to the destination machine, and a running ssh server (sshd in my case). Then the command is ssh xxx.xxx.xxx.xxx (e.g. : ssh 192.168.1.3)

anything you put into /etc/hosts is only to alias an IP address to a hostname : instead of writing ssh 192.168.1.3 all you write is #ssh xyz (where xyz is the name assigned to 192.168.1.3).

an entry in /etc/hosts looks like :

Code:
xxx.xxx.xxx.xxx xyz
192.168.1.3 Home
Serafean
 
Old 09-11-2007, 10:10 AM   #3
shawniecas
LQ Newbie
 
Registered: May 2007
Posts: 24

Original Poster
Rep: Reputation: 15
Thanks, I needed to change the alias too anyway. One more question though...right now its set up as shawniecas@hydrogen. So that is what my prompt looks like, but at the top of the Konsole window, it says "shawniecas@localhost:~ - Shell - Konsole" Why does it still say localhost?
 
Old 09-13-2007, 09:18 AM   #4
serafean
Member
 
Registered: Mar 2006
Location: Czech Republic
Distribution: Gentoo, Chakra
Posts: 985
Blog Entries: 14

Rep: Reputation: 135Reputation: 135
Hi,
Quote:
it says "shawniecas@localhost:~ - Shell - Konsole" Why does it still say localhost?
I think that's because the @localhost part is set on the host machine. Editing hosts.conf has no effect on the output of your shell. Another possibility is that the titlebar doesn't update.

Serafean
 
Old 09-13-2007, 09:41 AM   #5
monsm
Member
 
Registered: Feb 2005
Location: London, UK
Distribution: Gentoo
Posts: 568

Rep: Reputation: 37
Gratulations with new job.

One way to learn the basics of this fast is to do a certification exam. You can e.g. do LPIC-1 as self study and then book an exam. Doesn't cost much. It will give you a focus over a few weeks to read and study commands and other usefull Linux things.

On the specifics, if this is the title bar on top of the Konsole window I would think you are most likely to find configuration for that in a .something file either on your home directory or under /etc. Try searching for Konsole configuration. The promt text itself is configured in .bashrc (or something similar), but I don't think that has an effect on the title bar.
 
  


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
setting up a linux network irish rebel Linux - Networking 1 06-21-2004 11:05 PM
setting up linux network amanu1 Linux - Newbie 2 05-09-2004 02:58 PM
Need help setting up Linux network Biomech Linux - Networking 2 02-04-2004 11:14 AM
Setting up linux on my network SpeedDingo Linux - Networking 4 08-12-2002 06:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:38 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