|
OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below. |
|
Thread Tools | Display Modes |
|
|||
ssh server on OpenBSD
Hello all,
first post for me in this forum ! I want to setup a file server mainly for private use at home - later I might add functionality for some friends. my prior concern is to be able to ssh in this machine so I can up/down-load files and even change things - later I might add ftp, mail and other services I am totally newbie to the unix world in general - I have some console and even programming experience from linux and macos machines though - so I read a lot of tutorials online, asked friends and did these: - set up a dyndns acount and my router so that it updates my ip (I tested this and it works, everytime I reboot the server and ping my alias I get my new public ip) - forwarded port 22 in my router. not sure if it' s as supposed, but when I nmap my public ip I can see it open. - I messed around a bit with /etc/ssh/sshd_config file and tried some several other things I found online / I tried different configurations now on all configurations I tried, ssh localhost connects me and all is ok but ssh myalias.dyndns.org asks for passwd and whatever I enter it says "not permited" or sth similar worthnoticing is that on /usr/sbin/sshd I get a message that the files that hold the keys for the hosts (ssh_hosts_dsa_..sth like this) could not be opened - even when my configuration was for passwd only security anyway, anybody could help me with a step by step guide for begginers or just a couple of advices of how to setup ssh in an OpenBSD machine ?? thx |
|
|||
First of all, welcome!
The OpenBSD culture is different. Your single best source for information is the documentation supplied by the OpenBSD project. These include:
Quote:
Quote:
Quote:
Assuming SSH is installed on multiple computers in your network, connect to each machine first by IP address. This simplifies the overall problem by taking DNS lookups out of the picture initially, & allows you to focus solely on SSH issues. Once you have tweaked the configurations via information found on the sshd(8), sshd_config(5), ssh(1), & ssh_config(5) (amongst others...) to your liking, then worry about DNS. Lastly, we find most members on this site search/mine previous threads for information. As such, we try to keep threads on topic with a minimum of straying. Because this thread is initially on SSH issues, please keep discussion on this topic. Once you are satisfied with your SSH configuration, start a new thread on any remaining DNS issues you wish to discuss. Thanks. |
|
||||
Quote:
I am assuming that it is safe to assume that the guy who posted original question is not even aware of PF which is now turn on by default with (pass all keep state default rule). Step 1. Make sure to have Code:
sshd_flags=" " Step 2. Temporary disable PF with Code:
pfctl -d Once the above works turn on PF back and we will tell you how to pass in SSH traffic. Once that is done we will explain you how to use DynDNS to solve DNS issue so that you can log into your computer from anywhere on the Web. Last edited by Oko; 16th February 2011 at 07:13 PM. |
|
|||
thx very much for the help !
I recall I' ve checked rc.conf and it had this this line - but I didn' t look at rc.conf.local unfortunately, I' ll be away for a week, first thing to do when I' m back is to check all these and post back thx again ! |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to build a OpenBSD server? | fender0107401 | OpenBSD Installation and Upgrading | 6 | 15th October 2010 07:11 PM |
Openbsd x terminal server | wyginwys | OpenBSD General | 2 | 9th June 2010 12:11 PM |
OpenBSD as a PPP Dialup Server | jjjustjjjay | OpenBSD General | 2 | 20th April 2010 01:58 PM |
OpenBSD Xterminal Server | jjjustjjjay | OpenBSD General | 0 | 17th April 2010 12:46 PM |
Caching-only DNS server on OpenBSD | Oko | OpenBSD General | 1 | 13th September 2009 08:30 PM |