YA SSH newbie
Troy Piggins
troy at piggo.com
Thu May 25 20:58:45 UTC 2006
* GrepZen <ulist at gs1.ubuntuforums.org> :
>
> *Troy*,
>
> I'm trying your sshd_config now.. w/ my username 'micke'. same
> results.
> Should I be restarting sshd some way to re-read the config file?
Good grief GrepZen - please take a little more care when replying to lists to
keep threads etc intact, leave quotes in or state you have snipped something,
and don't top post.
I woke up this morning and this thread is all over the place. I have no idea
whether you have solved your problem, given up, or still trying.
</rant>
Sorry about that. Now...
Forget about ssh-agent. Ssh server and client is all you need for now.
Although is shouldn't matter if it /is/ running.
$ sudo apt-get install openssh-client openssh-server
Now, you could pretty much use my sshd_config file *except* as I mentioned I
disable the password option coz I use key auth.
Try backing up your default config:
$ sudo mv /etc/ssh/sshd_config /etc/ssh/sshd_config.DEFAULT
and put this in a file called /etc/ssh/sshd_config :
-----8<-----
Port 22
Protocol 2
HostKey /etc/ssh/ssh_host_rsa_key
HostKey /etc/ssh/ssh_host_dsa_key
UsePrivilegeSeparation yes
KeyRegenerationInterval 3600
ServerKeyBits 768
SyslogFacility AUTH
LogLevel INFO
LoginGraceTime 120
PermitRootLogin no
StrictModes no
RSAAuthentication no
PubkeyAuthentication no
IgnoreRhosts yes
RhostsRSAAuthentication no
HostbasedAuthentication no
PermitEmptyPasswords no
ChallengeResponseAuthentication no
PasswordAuthentication yes
X11Forwarding yes
X11DisplayOffset 10
PrintMotd no
PrintLastLog yes
KeepAlive yes
AcceptEnv LANG LC_*
Subsystem sftp /usr/lib/openssh/sftp-server
UsePAM yes
AllowUsers micke
-----8<-----
Note you don't need IP in there.
Restart sshd :
$ sudo /etc/init.d/ssh restart
Try that.
Once your up and running change StrictModes back to yes. Read man pages about
it.
Also look into key auth as I mentioned earlier.
--
Troy Piggins
,-o Ubuntu v5.10 (Breezy Badger): kernel 2.6.12-10-k7,
o ) postfix 2.2.4, procmail 3.22, mutt 1.5.11i,
`-o slrn 0.9.8.1/rt (score_color patch), vim 7.0
More information about the ubuntu-users
mailing list