![]() |
|
|||||||
| OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|||
|
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 |
|
||||
|
If you are able to connect on the local loop ... but not using your dyndns domain name, this could be for a lot of reasons.
That you are prompted for a password is good, it means that you can reach the externally facing address. If /usr/sbin/sshd cannot open files in /etc/ssh/*, that is a good reason for failed authentication. Your client cannot confirm it is communicating with the correct host. You can get a lot more information on what is happening, or not happening, by looking at logs from sshd -- you'll may find information from /var/log/authlog, /var/log/daemon, and /var/log/messages very helpful. What do YOU get when you issue the following command as root? # ls /etc/ssh Because the host keys should have been created by /etc/rc during your first boot of the OS. There's always the possibility you're connecting to an sshd daemon on your router, or another machine on your network, rather than on your OBSD machine.
__________________
OpenBSD LiveCDs/LiveDVDs |
|
|||
|
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. |
|
|||
|
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 |