Linux - NewbieThis 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!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I feel like I have come so far but have a lot more to go, so here is my problem:
I installed ubuntu 12.04 on a Dell Precision 670 I got for cheap. Everything seemed to be going well. I made a static IP for the server, made a static IP for the router and my friends and I can view the default web page of the server from the internet. I even got a desktop environment installed, but hated it and now boot directly into the terminal sans GUI.
After these minor accomplishments, I want to now manage my box remotely via SSH. I installed OpenSSH and SSH and started a session, at root. Then I went to my WinXP laptop and attempted to connect to the server locally with Putty, Connection Refused error. I have kept everything as port 22, just to keep things simple for for now.
I check to see if my server is listening for port 22:
# sudo netstat -pane | grep 22
but there are no IP addresses listening for that port!
I then (as root) start the ssh service again:
# sudo service ssh start
-> ssh start/pre-start, process 2524
I check to see if there is an ip address listening to 22, but nothing. I have forwarded port 22 on my router to my servers local IP.
I feel like I am almost there to actually getting somewhere with linux, but I keep running into a roadblock like this at every turn, and all the tutorials make this seem so easy!!
I thought I had started it, but maybe it keeps stopping? I thought this started it:
# sudo service ssh start
but even after running the command again, I still get connection refused! This seems like it is supposed to be one of the easiest things to get going on ubuntu, but it just won't happen, I am logged in as root also, just to make sure.
I can't check up non everything right now, I will have to wait until I get home tonight. I know I have checked sshd_config file and made sure that all the ports were 22.
However, it does not seem to be listening to port 22 when I run the latter commands. It is really weird, I'm starting the service with all ports 22, but it definitely seems like ssh is just not running.
I really haven't done anything to SSH after installing and thought that by just installing it and running putty on my winXP box right after, I'd at least get a test session going before adding more security. But unfortunately, nothing in linux seems that simple.
It seems like ssh is not running, but haven't I already started the process by running:
# service ssh start
then I get: ssh start/running, process 4101
when I got back to check the status, it stays that it is "stop/waiting" it is very weird. I definitely have ssh installed, I can start it up with a process id, but then it seems to stop. I check the ports in sshd_config, all are 22.
I went back and reinstalled OpenSSH Server
Things seemed to go well, just said I needed to reboot so some file could be configured correctly. I restart my machine and during the boot sequence, lots of lines about OpenSSH show up, but one of them is marked by a red [FAIL]. I don't know what is different about that line it is literally all the same up until the fail part.
I found out the sshd_config file had multiple duplicated sections, very weird. I must have done this on accident while using nano. I reinstalled the original port 22 file and everything worked perfectly. Thanks for the tips everyone!