On Saturday 07 November 2009 00:12:20 Hans Krueger wrote:
Bob Williams wrote:
On Friday 06 November 2009 23:18:37 Hans Krueger wrote:
Bob Williams wrote:
On Friday 06 November 2009 13:46:41 Roger Oberholtzer wrote:
On Fri, 2009-11-06 at 13:27 +0000, Bob Williams wrote:
Hi,
I'm trying to recycle an old machine as a headless server alongside my main desktop machine. The two machines will be linked through my ADSL router. I have done a standard openSUSE + KDE4.1 install on it, but now need to get it able to run in headless mode.
I have set the BIOS to 'Halt on none', so hopefully it will boot without mouse, keyboard or monitor.
I now need to set it to boot into runlevel 3, as there is no need for a GUI, but I am not sure which file(s) need editing.
/etc/inittab
Change the line:
id:5:initdefault:
to be:
id:3:initdefault:
Thank you. I've now got my server booting to a login prompt at run level 3.
The problem now is ssh :( . I've generated a pair of keys on my desktop machine and copied the resulting id_dsa.pub key into ~/.ssh/authorized_keys on the headless server. The sshd_config file on the headless server contains the following lines:
Protocol 2 PasswordAuthentication no UsePAM yes X11Forwarding yes Subsystem sftp /usr/lib/ssh/sftp-server AcceptEnv LANG LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES AcceptEnv LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT AcceptEnv LC_IDENTIFICATION LC_ALL
but all I get when I try to connect is:
21:08 barrowhillfarm:~> ssh bob@192.168.1.12 ssh: connect to host 192.168.1.12 port nnnn: Connection timed out
The desktop machine is configured to use a high numbered port nnnn rather than 22 as I was getting a lot of unwanted login attempts on port 22. However, I'm assuming that an ssh request from desktop to headless will try port 22 on the headless server.
is your server located in front or behind your router draw me a picture
Internet ---- Router ---- Desktop machine
---------- Headless server
The router is a Draytek 2800v, which has 4 ports on the LAN side. The two machines I am trying to connect together are connected to ports 1 & 2. In other words, they are on the same side of the router. They both have addresses on the LAN of the form 192.168.1.n
Does that help?
are you try to get to the server from the internet side or the desktop-server side ?
From the desktop server side Bob -- Registered Linux User #463880 FSFE Member #1300 GPG-FP: A6C1 457C 6DBA B13E 5524 F703 D12A FB79 926B 994E openSUSE 11.1, Kernel 2.6.27.37-0.1-default, KDE 4.3 Intel Core2 Quad Q9400 2.66GHz, 4GB DDR RAM, nVidia GeForce 9200GS -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org