View previous topic :: View next topic |
Author |
Message |
hunky l33t


Joined: 19 Nov 2003 Posts: 917 Location: Alaska
|
Posted: Fri Jul 22, 2005 2:41 am Post subject: help with ssh log-in please? [SOLVED] |
|
|
I have a server that I cannot ssh into - I think I used to be able to. I have a linksys router that I do have port 22 enabled, both udp and tcp. I don't have a firewall or ipchains enabled. Here's what I get when typing in
Code: | ssh -l jim 192.168.100.101 |
Code: | ssh: connect to host 192.168.100.101 port 22: Connection refused |
I can get into the server via webmin, but do not know how to edit files with it (the webmin filemanager won't work.. complains about no java support in browser). I can ftp into the server but am stuck in my home directories.
When looking at webmin/servers/ssh server, there's a button that says start server. Not sure I need a ssh server, but if I hit that start button, I get this error: Code: | Failed to start SSH server : /etc/ssh/sshd_config: line 55: Bad configuration option: <<<<<<< /etc/ssh/sshd_config: line 61: Bad configuration option: >>>>>>> /etc/ssh/sshd_config: terminating, 2 bad configuration options |
I have this openssh: Code: | [ebuild U ] net-misc/openssh-3.9_p1-r2 [3.9_p1-r1] -X509 -chroot -hpn -ipv6 -kerberos +ldap -nocxx +pam (-selinux) -sftplogging -skey -smartcard -static +tcpd 43 kB |
Not sure what other info you need.. feel free to ask. Hope someone can spot something I should check on or do.
cheers, Hunky
Last edited by hunky on Fri Jul 22, 2005 6:31 am; edited 1 time in total |
|
Back to top |
|
 |
LoDown Apprentice


Joined: 26 Oct 2004 Posts: 189 Location: Louisville, Ky
|
Posted: Fri Jul 22, 2005 3:44 am Post subject: |
|
|
To be able to ssh into your box you MUST start your ssh server, which is sshd, or there is nothing for ssh to connect to. To get sshd to start, you need to go into /etc/ssh/sshd_config and look at the lines that are referenced in the error message. See what is wrong with those three lines. Probably is a format error. If you can't figure it out, post your sshd_config using the Code button on the post screen so it is readable. |
|
Back to top |
|
 |
hunky l33t


Joined: 19 Nov 2003 Posts: 917 Location: Alaska
|
Posted: Fri Jul 22, 2005 6:16 am Post subject: |
|
|
ok, it looks kinda obvious now. It is those lines with the <<<<<< and >>>>> in them, must be from when I use dispatch-conf to edit the file.
Now I need to figure out how to edit the file using webmin or other. I can issue single commands on the command line interface, but it doesn't seem to allow followup commands. For instance, if I type man ssh, then I can't input a q to quit the man. There's no nano ability through the webmin command line, as far as I can tell. Would you know how to do this?
cheers, Jim
Code: | > cat /etc/ssh/sshd_config
<snip>
# This sshd was compiled with PATH=/usr/bin:/bin:/usr/sbin:/sbin
<snip>
# To disable tunneled clear text passwords, change to no here!
<<<<<<< /etc/ssh/sshd_config
#PasswordAuthentication yes
PermitEmptyPasswords no
=======
PasswordAuthentication no
#PermitEmptyPasswords no
>>>>>>> /etc/ssh/._cfg0000_sshd_config
[edit]snip[/edit] |
Last edited by hunky on Fri Jul 22, 2005 6:36 am; edited 2 times in total |
|
Back to top |
|
 |
hunky l33t


Joined: 19 Nov 2003 Posts: 917 Location: Alaska
|
Posted: Fri Jul 22, 2005 6:32 am Post subject: |
|
|
ok, I got my java working in mozilla - had a busted symlink on the plugin, and was able to edit the file in webmin. Works now like it used to.
cheers, and thanks much LoDown and all who may have read, Hunky. |
|
Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|