First of all, I advised your guys to read about OpenBSD in www.openbsd.org
Install openbsd 4.1 memo / 20070627
1.getting cd41.iso from ftp://ftp.openbsd.org/pub/OpenBSD/4.1/
2.install openbsd 4.1
-------------------------------------------------------------------------- rootdev=0x1100 rrootdev=0x2f00 rawdev=0x2f02 erase ^?, werase ^W, kill ^U, intr ^C, status ^T (I)nstall, (U)pgrade or (S)hell? -------------------------------------------------------------------------- put "i". Then, next --------------------------------------------------------------------------
Welcome to the OpenBSD/i386 3.8 install program.
This program will help you install OpenBSD in a simple and rational way. At
any prompt except password prompts you can run a shell command by typing
'!foo', or escape to a shell by typing '!'. Default answers are shown in []'s
and are selected by pressing RETURN. At any time you can exit this program by
pressing Control-C and then RETURN, but quitting during an install can leave
your system in an inconsistent state.
Specify terminal type: [vt220] Enter
kbd(8) mapping? ('?' for list) [none] Enter
--------------------------------------------------------------------------
--------------------------------------------------------------------------
IS YOUR DATA BACKED UP? As with anything that modifies disk contents, this
program can cause SIGNIFICANT data loss.
It is often helpful to have the installation notes handy. For complex disk
configurations, relevant disk hardware manuals and a calculator are useful.
Proceed with install? [no] y
--------------------------------------------------------------------------
Seeting up disks
--------------------------------------------------------------------------
Cool! Let's get to it...
You will now initialize the disk(s) that OpenBSD will use. To enable all
available security features you should configure the disk(s) to allow the
creation of separate filesystems for /, /tmp, /var, /usr, and /home.
Available disks are: wd0.
Which one is the root disk? (or done) [wd0] Enter
--------------------------------------------------------------------------
see current pertition -> "p"
delete pertition -> "d" i.e, "d a", "d b", etc.
create pertition -> "a" i.e, "a a", "a b", etc.
fix pertition -> "w"
quit this utility -> "q"
Then, go to setting network. I guess you can with no explanation.
Note: Do not create partition /boot because it would cause to occured "ERROR M" After finished install and reboot
5.Geeting ports from ftp. ftp ftp://ftp.openbsd.org/pub/OpenBSD/4.1/port.tar.gz $ pwd /usr $ tar zxvf ./ports.tar.gz 6.Install tcsh $ cd /usr/ports/shell/tcsh $ su # make install clean 7.Setting up sshd # cd /etc/ssh # cp ./sshd_config ./sshd_config.original # vi ./sshd_config # diff -u ./sshd_config ./sshd_config.original --- ./sshd_config Tue Apr 4 13:53:57 2006 +++ ./sshd_config.original Tue Apr 4 13:52:34 2006 @@ -10,7 +10,6 @@ #Port 22 #Protocol 2,1 -Protocol 2 #AddressFamily any #ListenAddress 0.0.0.0 #ListenAddress :: @@ -34,7 +33,6 @@ #LoginGraceTime 2m #PermitRootLogin yes -PermitRootLogin no #StrictModes yes #MaxAuthTries 6 @@ -54,7 +52,6 @@ # To disable tunneled clear text passwords, change to no here! #PasswordAuthentication yes -PasswordAuthentication no #PermitEmptyPasswords no # Change to no to disable s/key passwords # kill -HUP <SSHD PID> After that we would go to next step
- User: Create Public key from users
and then 'Administrator (server)' put public key in file /home/[user]/.ssh/authorized_keys
Note: Beware end of line or carriage return
After this point you will can access SSH server. Enjoy!
Advertisement