DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 25th September 2008
darken darken is offline
Port Guard
 
Join Date: May 2008
Posts: 30
Default install ssh openbsd

Hello

I am novice under openbsd, how we install and configure shh

Thank you
Reply With Quote
  #2   (View Single Post)  
Old 25th September 2008
Nightweaver's Avatar
Nightweaver Nightweaver is offline
Fdisk Soldier
 
Join Date: May 2008
Location: Belgrade, Serbia
Posts: 47
Default

SSH server is already there. You just have to enable it in /etc/rc.conf to be started at boot. Configuration is done in /etc/ssh/sshd_config. For more details check: http://www.openssh.org/faq.html
__________________
If it moves, crypt it. Unless it's static - than you should double-crypt it.
Reply With Quote
  #3   (View Single Post)  
Old 25th September 2008
darken darken is offline
Port Guard
 
Join Date: May 2008
Posts: 30
Default

Hello

install shh?

Thank
Reply With Quote
  #4   (View Single Post)  
Old 25th September 2008
Nightweaver's Avatar
Nightweaver Nightweaver is offline
Fdisk Soldier
 
Join Date: May 2008
Location: Belgrade, Serbia
Posts: 47
Default

Why would you install SSH when it's already there? Here are instructions for comiling and installing OpenSSH: http://www.openssh.org/openbsd.html
__________________
If it moves, crypt it. Unless it's static - than you should double-crypt it.
Reply With Quote
  #5   (View Single Post)  
Old 25th September 2008
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

The client program is ssh(1). The server program is sshd(8).

You may use the client program without any prior configuration. e.g.:

$ ssh user@server

The server program needs to be configured to start on boot. The installation script asks you if you want sshd started automatically. If you did not reply "y" then you will have to start it manually, or configure it yourself in /etc/rc.conf or /etc/rc.conf.local.
Reply With Quote
  #6   (View Single Post)  
Old 25th September 2008
darken darken is offline
Port Guard
 
Join Date: May 2008
Posts: 30
Default

Hello

The command cd /usr/src/usr.bin

No such file or directory

Reply With Quote
  #7   (View Single Post)  
Old 25th September 2008
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

You do NOT need to compile or install OpenSSH. OpenSSH is already installed in OpenBSD. It comes with OpenBSD. It is included in OpenBSD. All you need to do is USE it.

To use the OpenSSH client, issue the "ssh" command, as shown above.

To manually start the OpenSSH server, from a root shell, issue:

# /usr/sbin/sshd

To have the OpenSSH server start automatically when OpenBSD is booted, from a root shell, add
Code:
sshd_flags=""
to /etc/rc.conf.local. If you do not know how to use an editor, you can type:

# echo sshd_flags=\"\" >> /etc/rc.conf.local

That's it. You do NOT need to download source, compile, or install OpenSSH. It is already in your OS.

If you wish to configure server or client settings, you must do that by editing /etc/ssh/sshd_config and /etc/ssh/ssh_config.
Reply With Quote
  #8   (View Single Post)  
Old 25th September 2008
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,318
Default

In addition to jggimi's comments, SSH could have been configured during installation. See Section 4.5.7 of the FAQ for more information:

http://openbsd.org/faq/faq4.html#Finish
Reply With Quote
  #9   (View Single Post)  
Old 25th September 2008
darken darken is offline
Port Guard
 
Join Date: May 2008
Posts: 30
Default

Hello,

Thank you jggimi

Only the users of the group " wheel " are authorized connect ssh?

How to create a new user

Bye
Reply With Quote
Old 25th September 2008
darken darken is offline
Port Guard
 
Join Date: May 2008
Posts: 30
Default

Thank you ocicat url
Reply With Quote
Old 25th September 2008
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,318
Default

Quote:
Originally Posted by darken View Post
Only the users of the group " wheel " are authorized connect ssh?
By default, user accounts can use ssh(1) to connect to remote systems.

Allowing root access on a remote system can be configured on remote systems by setting PermitRootLogin in /etc/ssh_config. More information can be found in the ssh_config(5) manpage.
Reply With Quote
Old 25th September 2008
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

Quote:
Originally Posted by darken View Post
Only the users of the group " wheel " are authorized connect ssh?
Root access is needed to start the server, sshd. Client use does not require root access.
Quote:
How to create a new user
A discussion of the commands you need are in the afterboot(8) man page.

The e-mail awaiting root in the default install (the file /var/mail/root) should be helpful, too.
Quote:
Originally Posted by ocicat View Post
...setting PermitRootLogin in /etc/ssh_config.
That's the client configuration file. I think you meant sshd_config(5) instead.
Reply With Quote
Old 25th September 2008
darken darken is offline
Port Guard
 
Join Date: May 2008
Posts: 30
Default

What command it to create a new user
Reply With Quote
Old 25th September 2008
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,318
Default

Quote:
Originally Posted by darken View Post
What command it to create a new user
adduser(8). Creating user accounts is independent of SSH issues.
Reply With Quote
Old 25th September 2008
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,318
Default

Quote:
Originally Posted by jggimi View Post
I think you meant sshd_config(5) instead.
Correct. Thanks.
Reply With Quote
Old 25th September 2008
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,318
Default

Quote:
Originally Posted by ocicat View Post
More information can be found in Section 10.9 of the FAQ:

http://openbsd.org/faq/faq10.html#AddDelUser
Reply With Quote
Old 25th September 2008
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

Quote:
Originally Posted by darken View Post
What command it to create a new user
A discussion of adduser, vipw, and su are in the "Add new users" section of the afterboot man page.

Please, read it. A lot of people put in a great deal of effort to write the documentation, and it is far easier to read the information than it is to type up your questions.
Reply With Quote
Old 25th September 2008
darken darken is offline
Port Guard
 
Join Date: May 2008
Posts: 30
Default

Hello

When I connect Authentication failed,

When I type the command Adduser

Reading /etc/shells
Check /etc/master.passwd
Password file busy
Reply With Quote
Old 25th September 2008
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

Quote:
Originally Posted by darken View Post
When I connect Authentication failed
Authentication can fail for many reasons. Here are several:
  • You are using an invalid userid -- right now, your only valid userid is "root"
  • The root password is blank
  • root login is not permitted -- the default is to allow it
  • Password Authentication is disabled -- the default is to allow it
Where are you connecting from? What userid are you using?
Quote:
...Password file busy
Are you trying to run adduser from multiple consoles? Are you trying to use vipw at the same time as adduser?

Provide more information.
Reply With Quote
Old 25th September 2008
darken darken is offline
Port Guard
 
Join Date: May 2008
Posts: 30
Default

the root command adduser
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Install NetBSD when DesktopBSD or OpenBSD is installed ahlsner NetBSD General 4 6th August 2009 08:26 PM
Install Portaudit On OpenBSD TheNoob OpenBSD Installation and Upgrading 4 5th May 2009 11:48 PM
Full install of Gnome on OpenBSD 4.4 mfaridi OpenBSD Installation and Upgrading 17 9th November 2008 01:54 PM
install FileZilla in OpenBSD 4.2 mfaridi OpenBSD Packages and Ports 3 4th November 2008 08:13 AM
Remote OpenBSD install via ssh. Dazhelpwiz Guides 0 23rd May 2008 12:07 AM


All times are GMT. The time now is 08:52 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick