DAEMONS=(syslog-ng @network @sshd netfs acpid laptop-mode @hal dhcdbd oss-linux-free networkmanager @fam crond slim)
In just about every tutorial, guide, Wiki, etc I have read, they state that network and netfs need to be started before sshd. I haven't any experience with networkmanager, but I agree with thayer, put sshd after network, netfs, and networkmanager.
The Arch Wiki on ssh used to state this also, but it now simply states "Just add sshd to the "DAEMONS" section of your /etc/rc.conf:" If this fixes your problem, then maybe you should edit the SSH entry in the Wiki.
Pudge
]]>DAEMONS=(syslog-ng @network @sshd netfs acpid laptop-mode @hal dhcdbd oss-linux-free networkmanager @fam crond slim)
I would have to agree with Basu. Although it's never presented a problem for my own setup, but it could be that sshd is failing because it's starting before network is...err wait a sec. You've got networkmanager/dhcdbd enabled with @network--you shouldn't need both. That might be causing a conflict, I'm not sure. And try moving @sshd to the end of your list. The order shouldn't matter since it's backgrounded, but hey, ya never know!
]]>#
# /etc/rc.conf - Main Configuration for Arch Linux
#
# -----------------------------------------------------------------------
# LOCALIZATION
# -----------------------------------------------------------------------
#
# LOCALE: available languages can be listed with the 'locale -a' command
# HARDWARECLOCK: set to "UTC" or "localtime"
# USEDIRECTISA: use direct I/O requests instead of /dev/rtc for hwclock
# TIMEZONE: timezones are found in /usr/share/zoneinfo
# KEYMAP: keymaps are found in /usr/share/kbd/keymaps
# CONSOLEFONT: found in /usr/share/kbd/consolefonts (only needed for non-US)
# CONSOLEMAP: found in /usr/share/kbd/consoletrans
# USECOLOR: use ANSI color sequences in startup messages
#
LOCALE="en_US.utf8"
HARDWARECLOCK="localtime"
USEDIRECTISA="no"
TIMEZONE="Australia/Adelaide"
KEYMAP="us"
CONSOLEFONT=
CONSOLEMAP=
USECOLOR="yes"
# -----------------------------------------------------------------------
# HARDWARE
# -----------------------------------------------------------------------
#
# MOD_AUTOLOAD: Allow autoloading of modules at boot and when needed
# MOD_BLACKLIST: Prevent udev from loading these modules
# MODULES: Modules to load at boot-up. Prefix with a ! to blacklist.
#
# NOTE: Use of 'MOD_BLACKLIST' is deprecated. Please use ! in the MODULES array.
#
MOD_AUTOLOAD="yes"
#MOD_BLACKLIST=() #deprecated
MODULES=(atl1 mii iwl4965 !snd-hda-intel !snd-mixer-oss
!snd-pcm-oss
!snd-hwdep !snd-page-alloc !snd-pcm !snd-timer !snd-pcsp !snd !soundcore)
# Scan for LVM volume groups at startup, required if you use LVM
USELVM="no"
# -----------------------------------------------------------------------
# NETWORKING
# -----------------------------------------------------------------------
#
# HOSTNAME: Hostname of machine. Should also be put in /etc/hosts
#
HOSTNAME="tys-arch"
# Use 'ifconfig -a' or 'ls /sys/class/net/' to see all available interfaces.
#
# Interfaces to start at boot-up (in this order)
# Declare each interface then list in INTERFACES
# - prefix an entry in INTERFACES with a ! to disable it
# - no hyphens in your interface names - Bash doesn't like it
#
# DHCP: Set your interface to "dhcp" (eth0="dhcp")
# Wireless: See network profiles below
#
eth0="dhcp"
wlan0="dhcp"
INTERFACES=(lo eth0 !wlan0)
# Routes to start at boot-up (in this order)
# Declare each route then list in ROUTES
# - prefix an entry in ROUTES with a ! to disable it
#
gateway="default gw 192.168.1.254"
ROUTES=(!gateway)
# Enable these network profiles at boot-up. These are only useful
# if you happen to need multiple network configurations (ie, laptop users)
# - set to 'menu' to present a menu during boot-up (dialog package required)
# - prefix an entry with a ! to disable it
#
# Network profiles are found in /etc/network.d
#
# This now requires the netcfg package
#
#NETWORKS=(main)
# -----------------------------------------------------------------------
# DAEMONS
# -----------------------------------------------------------------------
#
# Daemons to start at boot-up (in this order)
# - prefix a daemon with a ! to disable it
# - prefix a daemon with a @ to start it up in the background
#
DAEMONS=(syslog-ng @network @sshd netfs acpid laptop-mode @hal dhcdbd oss-linux-free networkmanager @fam crond slim)
I tried disabling slim altogether but that made no difference.
[edit]
.xinitrc is empty apart from
exec openbox-session
How are you connecting remotely? I mean, exactly what command are you running? ssh user@domain?
]]>So, make sure you are starting sshd from the DAEMONS array in /etc/rc.conf. That way it will load as soon as the system comes up...for example:
DAEMONS=(syslog-ng ... sshd)
Is it normal for sshd to only be running when a user is logged in locally?
Can I have sshd running on bootup so I can remote in regardless of whether or not a user is logged in locally?
When I say running on bootup, it does anyway. I don't manually have to run it, it runs automatically but only after I have logged in.
Something simple I'm doing wrong here I know it...
]]>