Install OpenSSH from source.

Kernels & Hardware, configuring network, installing services

Install OpenSSH from source.

Postby hack3rcon » 2019-01-07 11:03

Hello.
I installed "OpenSSH 7.9 P1" on Debian 8.6 x86_64 but when I tried "systemctl start sshd" then it show me below error:
Code: Select all
Failed to start sshd.service: Unit sshd.service failed to load: No such file or directory.

How can I solve it?

Thank you.
hack3rcon
 
Posts: 80
Joined: 2015-02-16 09:54

Re: Install OpenSSH from source.

Postby peter_irich » 2019-01-07 11:54

Try run ssh, not sshd.

Peter.
peter_irich
 
Posts: 1239
Joined: 2009-09-10 20:15
Location: Saint-Petersburg, Russian Federation

Re: Install OpenSSH from source.

Postby hack3rcon » 2019-01-07 12:07

peter_irich wrote:Try run ssh, not sshd.

Peter.

Got same error.
When I run "/usr/local/sbin/sshd" then show me "Privilege separation user sshd does not exist". I compiled it and output is https://paste.ubuntu.com/p/rdmZxmgWNK/
hack3rcon
 
Posts: 80
Joined: 2015-02-16 09:54

Re: Install OpenSSH from source.

Postby Segfault » 2019-01-07 12:24

You used prefix /usr/local, I do not use systemd myself, you sure it can cope with it?
Segfault
 
Posts: 851
Joined: 2005-09-24 12:24

Re: Install OpenSSH from source.

Postby hack3rcon » 2019-01-07 12:31

Segfault wrote:You used prefix /usr/local, I do not use systemd myself, you sure it can cope with it?

I don't know. I coped the source file to "/usr/local/src" and compiled it.
hack3rcon
 
Posts: 80
Joined: 2015-02-16 09:54

Re: Install OpenSSH from source.

Postby Segfault » 2019-01-07 12:34

You must be joking.
Segfault
 
Posts: 851
Joined: 2005-09-24 12:24

Re: Install OpenSSH from source.

Postby hack3rcon » 2019-01-07 12:37

Segfault wrote:You must be joking.

Why?
hack3rcon
 
Posts: 80
Joined: 2015-02-16 09:54

Re: Install OpenSSH from source.

Postby None1975 » 2019-01-07 14:21

hack3rcon wrote:I installed "OpenSSH 7.9 P1" on Debian 8.6 x86_64

How do you install it? I ask because your OpenSSH version is newer than it is in the official Debian 8 repository.
OS: Debian Stretch / WM: FVWM
Debian Wiki | DontBreakDebian, My config files in github
User avatar
None1975
 
Posts: 750
Joined: 2015-11-29 18:23
Location: Lithuania, Vilnius

Re: Install OpenSSH from source.

Postby Segfault » 2019-01-07 16:22

None1975 wrote:
hack3rcon wrote:I installed "OpenSSH 7.9 P1" on Debian 8.6 x86_64

How do you install it? I ask because your OpenSSH version is newer than it is in the official Debian 8 repository.

Oh dear. Do you mind looking at the title of this thread? And the posts made, along with pastebin link? Unfortunately, our OP does not know how to configure sources properly, leave alone building a deb package and installing from package.
Segfault
 
Posts: 851
Joined: 2005-09-24 12:24

Re: Install OpenSSH from source.

Postby peter_irich » 2019-01-07 17:23

Why from source? Install package: openssh-server.
Or, if really need from source, try build deb-package after compilation and install it by " dpkg -i ...".
peter_irich
 
Posts: 1239
Joined: 2009-09-10 20:15
Location: Saint-Petersburg, Russian Federation

Re: Install OpenSSH from source.

Postby hack3rcon » 2019-01-08 05:36

None1975 wrote:
hack3rcon wrote:I installed "OpenSSH 7.9 P1" on Debian 8.6 x86_64

How do you install it? I ask because your OpenSSH version is newer than it is in the official Debian 8 repository.

I download the source code and did "./configure && make && make install".
hack3rcon
 
Posts: 80
Joined: 2015-02-16 09:54

Re: Install OpenSSH from source.

Postby Head_on_a_Stick » 2019-01-08 06:06

Do the generated files include a systemd unit file?

You could steal one from the Debian package :)

/usr/lib/systemd/user/ssh-agent.service is the one you want.

EDIT: actually, that's a user .service so try
Code: Select all
systemctl --user enable ssh-agent
"French riots get results! U lot are instagram zzzombies" — graffiti over Euston underpass
User avatar
Head_on_a_Stick
 
Posts: 8610
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Install OpenSSH from source.

Postby hack3rcon » 2019-01-08 07:41

Head_on_a_Stick wrote:Do the generated files include a systemd unit file?

You could steal one from the Debian package :)

/usr/lib/systemd/user/ssh-agent.service is the one you want.

EDIT: actually, that's a user .service so try
Code: Select all
systemctl --user enable ssh-agent

My system not have "ssh-agent.service" at "/usr/lib/systemd/user/".
hack3rcon
 
Posts: 80
Joined: 2015-02-16 09:54

Re: Install OpenSSH from source.

Postby peter_irich » 2019-01-08 12:52

Install openssh-client and you will be have ssh-agent.service.
I think you are going by the not right way. Install packages from repository and will not have a problems.

Peter.
peter_irich
 
Posts: 1239
Joined: 2009-09-10 20:15
Location: Saint-Petersburg, Russian Federation

Re: Install OpenSSH from source.

Postby None1975 » 2019-01-08 14:18

hack3rcon wrote:I download the source code and did "./configure && make && make install".

Why does it make life difficult for yourself? Just install it from official repository
Code: Select all
apt install openssh-server

peter_irich wrote:I think you are going by the not right way. Install packages from repository and will not have a problems.

Very well noticed.
Segfault wrote:And the posts made, along with pastebin link? Unfortunately, our OP does not know how to configure sources properly, leave alone building a deb package and installing from package.

Just don't show you your arrogance here. We all started learning before knowing anything about Linux. And this forum was created to help each other. Or maybe I'm wrong?
OS: Debian Stretch / WM: FVWM
Debian Wiki | DontBreakDebian, My config files in github
User avatar
None1975
 
Posts: 750
Joined: 2015-11-29 18:23
Location: Lithuania, Vilnius


Return to System configuration

Who is online

Users browsing this forum: No registered users and 7 guests

fashionable