You are not logged in.
Pages: 1
Hi, i followed the wiki page on setting up ssh and its not working right.i keep getting errors like remote closed session when i try to connect.
im really only going to be using this ssh inside a router and i want password authentication. can someone help me with this?
Last edited by godtuti (2010-08-31 17:43:44)
Offline
Without more details, only a psychic could help you.
Tell us what you're trying to do and what error messages you've gotten, as well as what configuration you've done.
Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.
Offline
Offline
hosts.allow?
btw keys are better even on a internal network.
Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest
Offline
Without more details, only a psychic could help you.
Tell us what you're trying to do and what error messages you've gotten, as well as what configuration you've done.
sorry, im not sure what info to put so i insist people helping me will ask for what info they need, im trying to setup a ssh port on my desktop so i can ssh into from my phone.
Offline
hosts.allow?
btw keys are better even on a internal network.
could you tell me how to configure that file to let my lan try to connect?
Offline
godtuti please read the documentation before asking questions: http://wiki.archlinux.org/index.php/SSH … _others_in
Offline
godtuti please read the documentation before asking questions: http://wiki.archlinux.org/index.php/SSH … _others_in
i read that whole wiki about ssh and that part didnt make sense to me... do i have to uncomment my choice?
Offline
Mr.Elendig wrote:hosts.allow?
btw keys are better even on a internal network.
could you tell me how to configure that file to let my lan try to connect?
man hosts.allow :-)
Offline
godtuti wrote:Mr.Elendig wrote:hosts.allow?
btw keys are better even on a internal network.
could you tell me how to configure that file to let my lan try to connect?
man hosts.allow :-)
Huh?
Offline
Allowing others in
Note: You have to adjust this file to remotely connect to your machine since the file is empty by default
To let other people ssh to your machine you need to adjust /etc/hosts.allow, add the following:
# let everyone connect to you
sshd: ALL# OR you can restrict it to a certain ip
sshd: 192.168.0.1# OR restrict for an IP range
sshd: 10.0.0.0/255.255.255.0# OR restrict for an IP match
sshd: 192.168.1.
Now you should check your /etc/hosts.deny for the following line and make sure it looks like this:
ALL: ALL: DENY
That's it. You can SSH out and others should be able to SSH in .
So, assuming you are on a 10.0.0.0 network, just add "sshd: 10.0.0.0/255.255.255.0", or a 192.168.0.0 network: "sshd: 192.168.0.0/255.255.255.0"
"sshd: 10.0.0." or "sshd: 192.168.0." would also work.
Last edited by Mr.Elendig (2010-08-26 22:36:24)
Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest
Offline
karol wrote:godtuti wrote:could you tell me how to configure that file to let my lan try to connect?
man hosts.allow :-)
Huh?
There's a manpage called hosts_access(5), but you can get it by invoking 'man hosts.allow' too.
Offline
so i changed my host.allow to "sshd: 192.168.0.0/255.255.255.0" because im using 192.168, i restart the daemon i try to ssh in from my phone and i get the error "remote closed the connection"
Offline
How about you use a pastebin to post your configs including /etc/hosts.deny, /etc/hosts.allow, sshd, and the config for your phone so you can use them as a reference
Be sure to fire up a terminal and look at man pages.
One thing at a time
Offline
How about you use a pastebin to post your configs including /etc/hosts.deny, /etc/hosts.allow, sshd, and the config for your phone so you can use them as a reference
Be sure to fire up a terminal and look at man pages.
Offline
Anyone?
Offline
My hosts.allow looks like this:
#
# /etc/hosts.allow
#
# let everyone connect to you
#sshd: ALL
# OR you can restrict it to a certain ip
#sshd: 192.168.0.1
# OR restrict for an IP range
#sshd: 10.0.0.0/255.255.255.0
# OR restrict for an IP match
sshd: 192.168.0.
# End of file
Your hosts.deny is like mine and you have an error in your sshd_config. Line 55 should not be on a separate line - it is supposed to be on the end of line 54.
You have:
...
#AuthorizedKeysFile .ssh/authorized_keys
# For this to work you will also need host keys in
/etc/ssh/ssh_known_hosts
#RhostsRSAAuthentication no
...
It is supposed to be:
...
#AuthorizedKeysFile .ssh/authorized_keys
# For this to work you will also need host keys in /etc/ssh/ssh_known_hosts
#RhostsRSAAuthentication no
...
Try removing the error and changing your hosts.allow to mine. This is the solution mentioned in the second part of Mr.Elendig's post (#11) above. Did you try it?
Last edited by BaconPie (2010-08-29 16:19:12)
Offline
changed my host.allow back to sshd: 192.168.0.0/255.255.255.0 with all the stuff from yours, fixed the error, still saying remote closed connection
Offline
changed my host.allow back to sshd: 192.168.0.0/255.255.255.0
I said to change it to:
sshd: 192.168.0.
Also, did you restart the daemon?
By the way, what's the address of your router? Are you sure you're on a 192.168.0.* network and not a 192.168.1.*?
Last edited by BaconPie (2010-08-30 01:31:04)
Offline
i looked at my configs and fixed some things that didnt look right such as my host.allow, it works now .. thank you to everyone who helped out.. just two more questions. how do i secure my ssh and how do i mark this topic as solved?
Offline
i looked at my configs and fixed some things that didnt look right such as my host.allow, it works now .. thank you to everyone who helped out.. just two more questions. how do i secure my ssh and how do i mark this topic as solved?
You edit your first post and ssh is already secure. Secure Shell Wiki.
Last edited by BaconPie (2010-08-31 10:44:34)
Offline
Pages: 1