LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 04-09-2012, 07:16 PM   #1
thezerodragon
Member
 
Registered: Apr 2009
Location: Paris, France
Distribution: Fedora 12 Constantine
Posts: 142

Rep: Reputation: 44
Lightbulb SSH... don't mind me.


Hello LQ,

I haven't been here since Fedora 16 was released because I basically haven't had a single problem with it.

My main computer runs it fine, despite several hardware changes, and so I built a second system out of spare parts in the living room. I installed my old Fedora 15 disc and successfully ran preupgrade so now both machines run fc16-x86_64.

But it's inconvenient to have to walk out into the living room and plug a monitoring into the second machine. What's an elegant and lightweight way for me to access this second machine from the main one? I am not familiar with setting up networks on Linux. Both devices are hardwired to the same ADSL router/modem and are on its MAC whitelist.

Can I just use SSH to do this? Can I do it by IP directly so I could potentially access truly remote systems in the future? Ideal for me is a command line solution that allows me to switch to GUI if necessary, but by default displays the remote system's CLI.

Last edited by thezerodragon; 04-09-2012 at 07:18 PM.
 
Old 04-09-2012, 07:24 PM   #2
thezerodragon
Member
 
Registered: Apr 2009
Location: Paris, France
Distribution: Fedora 12 Constantine
Posts: 142

Original Poster
Rep: Reputation: 44
also...

I realize a complete answer to this kind of question involves research on the part of the asker. I'm just looking for some pointers in the right direction. Thanks,
 
Old 04-09-2012, 07:44 PM   #3
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,130
Blog Entries: 2

Rep: Reputation: 4829Reputation: 4829Reputation: 4829Reputation: 4829Reputation: 4829Reputation: 4829Reputation: 4829Reputation: 4829Reputation: 4829Reputation: 4829Reputation: 4829
For CLI access SSh is infact the best option. You can even run GUI applications through a SSH channel. Other options for GUI access would be VNC and FreeNX.
 
Old 04-09-2012, 07:45 PM   #4
nonamedotc
Member
 
Registered: Mar 2011
Location: /
Distribution: Fedora (typically latest release or development release)
Posts: 372

Rep: Reputation: Disabled
There are a few options that are available.

ssh -X
vncserver/vncviewer
rdesktop
x11vnc

See which of these would best fit your needs.
 
Old 04-09-2012, 07:52 PM   #5
thezerodragon
Member
 
Registered: Apr 2009
Location: Paris, France
Distribution: Fedora 12 Constantine
Posts: 142

Original Poster
Rep: Reputation: 44
Great, thanks for your input.

What's a good tutorial for getting started with SSH? Does it come installed by default? Are the man and info coreutils invocation detailed enough for a layperson?

Thanks again.
 
Old 04-09-2012, 08:57 PM   #6
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,275

Rep: Reputation: 1955Reputation: 1955Reputation: 1955Reputation: 1955Reputation: 1955Reputation: 1955Reputation: 1955Reputation: 1955Reputation: 1955Reputation: 1955Reputation: 1955
It should be ready to go already, I'm pretty sure fedora has the ssh server installed and running by default.

Try running
Code:
ssh -Y user@ip
Swapping user with your username and ip with the remote machine's local IP, and see what happens
 
1 members found this post helpful.
Old 04-09-2012, 11:24 PM   #7
thezerodragon
Member
 
Registered: Apr 2009
Location: Paris, France
Distribution: Fedora 12 Constantine
Posts: 142

Original Poster
Rep: Reputation: 44
Thumbs up all done

It wasn't quite that simple.

At first I got an error of "no path to host"

Checked the router's settings- all good

Then I got an error message of:
"connection refused"

turns out that sshd has to be restarted on both machines

then the connection was established, but
"read from socket failed: connection reset by peer"

this was solved by the command
Code:
ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key
issued as root from /etc/ssh/ to regenerate valid keys

since then I've been able to connect. Thanks again.
 
Old 04-10-2012, 10:22 AM   #8
thezerodragon
Member
 
Registered: Apr 2009
Location: Paris, France
Distribution: Fedora 12 Constantine
Posts: 142

Original Poster
Rep: Reputation: 44
Exclamation one more thing

I can't ssh back in after I tell the remote machine to reboot. I have to go back over to it and restart sshd. Is there a way to have it automatically restart when the computer reboots.

On another note, (I'll start a new thread if necessary) how do I fix the yum repos? I found out the old computer was still using fc.15 and it keeps trying a bunch of non-working mirrors whenever I try to update anything.
 
Old 04-10-2012, 11:19 AM   #9
dougt
LQ Newbie
 
Registered: Mar 2012
Distribution: Redhat, Solaris, AIX, HPUX
Posts: 8

Rep: Reputation: Disabled
You need to add the sshd service to the default run level for your system. Have a look at "chkconfig" and /etc/inittab
 
Old 04-10-2012, 11:33 AM   #10
nonamedotc
Member
 
Registered: Mar 2011
Location: /
Distribution: Fedora (typically latest release or development release)
Posts: 372

Rep: Reputation: Disabled
Since you are running Fedora 16,

Code:
systemctl enable sshd.service
This should start ssh service everytime you start the computer.
 
Old 04-11-2012, 10:19 PM   #11
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,245

Rep: Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325
Note that Fedora comes out with new versions about every 13 mths(?); you may want to look at Centos (free version of RHEL) as it is supported/updated for a very long time.
https://access.redhat.com/support/po...pdates/errata/
 
  


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
Rsync copies my SSH key over when I don't want it to Raze Programming 3 07-27-2009 01:40 AM
why I don't change the port about ssh beyond911 Linux - Software 7 08-18-2007 01:53 AM
I you all don't mind I think I'll climb aboard for a little Linux OldMarine LinuxQuestions.org Member Intro 2 03-28-2007 11:22 AM
If you all don't mind I think I'll climb aboard for a little Linux OldMarine LinuxQuestions.org Member Intro 1 03-28-2007 07:40 AM
i'm having with Alsa mixer , please help if you don't mind .. HeRCuLeSX Linux - Hardware 3 01-14-2004 10:11 AM


All times are GMT -5. The time now is 11:39 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration