LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 04-30-2004, 11:46 PM   #1
debian_dummy
Member
 
Registered: Apr 2004
Distribution: Debian SID and Woody
Posts: 77

Rep: Reputation: 15
Talking Fresh Woody default install and now need to remote access the same server


Hi all,

How can I remotely access a brand new, updated, non configured/tweaked (?) Woody install ?

I just installed and upgraded plain old Woody on a server at our office. I didn't do any "configuration" or testing, such as connecting to the Woody box via SSH etc. I just did the base install, update and then went home.

Today, I want to access the Woody server from outside the LAN to complete the config (SAMBA etc). I am at home and too lazy to go to the office on a Saturday

I can access my main WINDOWS server at work from the Internet (VNC, SSH etc) and want to get access FROM the Windows server to the new Woody box.

I tried SSH (Putty) from Windows server to Woody box but got "Connection refused"

How can I make it so Number 1 ?

Next question -

How do I take control of an existing local log in remotely ?

When I left the Woody box (already updated and upgraded) I added Gnome backport sources to the sources.list, did a apt-get update, apt-get install gnome x-window-system fontconfig and then went home, leaving the server to download 150 or so MB of stuff. I am sure there are a few config questions waiting to be answered and must be answered before the Gnome install is complete and I can use apt-get in another console.

Cheers

Last edited by debian_dummy; 04-30-2004 at 11:47 PM.
 
Old 05-01-2004, 06:20 AM   #2
llamakc
Member
 
Registered: Nov 2003
Distribution: Debian & Ubuntu
Posts: 402

Rep: Reputation: 31
You didn't install ssh? If you didn't specifically apt-get it, ssh is not installed by default on Woody. You are gonna have to go into work and do that, or wait until your next workday.

I don't know how to hijack a currently-logged in user's console. If you use the program "screen" in the future it will make your life alot easier for these sort of situations.

However, once you _do_ get ssh'd in and have root, you can poke around with `ps aux` and then explicitly kill any dpkg/apt commands. Then, re-run that last apt-get upgrade (or install foopackage) and it will begin where it left off, prompting you with the questions.
 
Old 05-01-2004, 08:57 AM   #3
pe2338
Member
 
Registered: Dec 2002
Location: Bucharest,RO
Distribution: debian etch, sarge and sid
Posts: 407

Rep: Reputation: 30
Talking oooops, no sshd running

llamakc is right, you _will_ have to go to work if you didn't install ssh...

Take care, after you install it to tell to sshd (/etc/sshd_config) to run on the desired interfaces (if more than one)..

and another thing when doing "apt-get update ; apt-get upgrade" and want it not to hang on config questions do instead :
Code:
 #( apt-get -y update; apt-get -y upgrade ) &
This will send the commands in background and will do an non-interactive configuration

Q: Why in hell would you want X on a server??????
is a _huge_ security risk.... I also adminster a server that runs headless and has no X.. , only good ol' ssh.


Hint: Take care with the firewall configuration, you might have to make a few trips to work (this is a common mistake). As an advice, put a ssh accept rule on the top of the filter chain. Even if you accept from everywhere is better to have it this way than .

I almost forgot, I made a script for the server I'm running; it's ran every day and basicaly it updates the packages automatically , so I guess I just have to look through the mails, you could do that, too...

if you get your packages from multiple sources, you'd better set a /etc/apt/preferences file.

Last edited by pe2338; 05-01-2004 at 09:01 AM.
 
Old 05-01-2004, 11:37 AM   #4
debian_dummy
Member
 
Registered: Apr 2004
Distribution: Debian SID and Woody
Posts: 77

Original Poster
Rep: Reputation: 15
Talking

Thanks for the answers, tips and advice, very useful stuff. I went to work, installed SSH and can now access it from outside.

>> If you use the program "screen" in the future it will make your life alot easier for these sort of situations.

Thanks, I'll check it out.

>> Q: Why in hell would you want X on a server ????

A bit of a historical compromise as we have always been a Windows shop hosting our own website, ftp, mail etc and have no IT people. I travel for work a bit and sometimes can't get near an Internet connection to check on the servers at work. At the moment, if something "breaks" on a Windows server and I have no Internet connection, I call someone at work, they log in via a GUI and I talk them through fixing the issue. So, that's the logic behind using X - getting a GUI. Plus, for a Linux newbie - or a Debian Dummy - making things like firewall rules are a heck of a lot easier with a GUI solution.

Your post has made me re-think my approach. We will be using a hosting company for our web, ftp and mail so perhaps a command line only box is better. I'll have to search Google a bit more for some verbose guides for configuring a Debian box as a fileserver etc.

So why am I looking at getting rid of a working existing solution and moving to Debian ? We are about to buy 2 new servers to replace the existing servers (hardware getting old and noisy) and with Debian stable I hope to have a super stable OS that doesn't have "issues".

The only issue will be my learning curve and interpreting MAN pages. Any links or advice for newbie Debain server administrators would be greatly appreciated .

Cheers

Last edited by debian_dummy; 05-01-2004 at 11:43 AM.
 
Old 05-01-2004, 12:13 PM   #5
debian_dummy
Member
 
Registered: Apr 2004
Distribution: Debian SID and Woody
Posts: 77

Original Poster
Rep: Reputation: 15
>> If you use the program "screen" in the future it will make your life alot easier for these sort of situations.

OK I checked out "screen" from this link http://www.guckes.net/screen/ and it looks pretty darn good.

Thanks again.. that one's a keeper ...
 
Old 05-02-2004, 08:44 AM   #6
llamakc
Member
 
Registered: Nov 2003
Distribution: Debian & Ubuntu
Posts: 402

Rep: Reputation: 31
Here's a great online iptables fw generator:

http://easyfwgen.morizot.net/gen/

HTH,
 
Old 05-02-2004, 11:29 AM   #7
pe2338
Member
 
Registered: Dec 2002
Location: Bucharest,RO
Distribution: debian etch, sarge and sid
Posts: 407

Rep: Reputation: 30
Talking

Quote:
making things like firewall rules are a heck of a lot easier with a GUI solution.
Hey, I am using firewall builder and does a pretty good job, Is intalled on my workstation, not the server as it can make firewalls for remote targets

You should check it out!
 
  


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
Fresh Install Mdk 10: Shorewall Blocks Net Access ColinM Linux - Newbie 1 12-09-2004 01:22 PM
X server will not load on fresh install of 9.2 loctan Mandriva 1 01-07-2004 05:15 AM
remote access server mprice74 Linux - Networking 0 08-29-2003 06:47 AM
Remote Access Server lewisc33 Linux - Software 0 11-05-2002 01:12 PM
Remote access server mallikarjun Linux - Networking 3 05-17-2002 05:35 AM


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

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 Google+: linuxquestions
Open Source Consulting | Domain Registration