Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Install OpenSSH from source.

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
hack3rcon
Posts: 746
Joined: 2015-02-16 09:54
Has thanked: 48 times

Install OpenSSH from source.

#1 Post by hack3rcon »

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.

peter_irich
Posts: 1406
Joined: 2009-09-10 20:15
Location: Saint-Petersburg, Russian Federation
Been thanked: 11 times

Re: Install OpenSSH from source.

#2 Post by peter_irich »

Try run ssh, not sshd.

Peter.

hack3rcon
Posts: 746
Joined: 2015-02-16 09:54
Has thanked: 48 times

Re: Install OpenSSH from source.

#3 Post by hack3rcon »

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/

Segfault
Posts: 993
Joined: 2005-09-24 12:24
Has thanked: 5 times
Been thanked: 17 times

Re: Install OpenSSH from source.

#4 Post by Segfault »

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

hack3rcon
Posts: 746
Joined: 2015-02-16 09:54
Has thanked: 48 times

Re: Install OpenSSH from source.

#5 Post by hack3rcon »

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.

Segfault
Posts: 993
Joined: 2005-09-24 12:24
Has thanked: 5 times
Been thanked: 17 times

Re: Install OpenSSH from source.

#6 Post by Segfault »

You must be joking.

hack3rcon
Posts: 746
Joined: 2015-02-16 09:54
Has thanked: 48 times

Re: Install OpenSSH from source.

#7 Post by hack3rcon »

Segfault wrote:You must be joking.
Why?

User avatar
None1975
df -h | participant
df -h | participant
Posts: 1410
Joined: 2015-11-29 18:23
Location: Russia, Kaliningrad
Has thanked: 46 times
Been thanked: 70 times

Re: Install OpenSSH from source.

#8 Post by None1975 »

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 12.4 Bookworm / DE: Enlightenment
Debian Wiki | DontBreakDebian, My config files on github

Segfault
Posts: 993
Joined: 2005-09-24 12:24
Has thanked: 5 times
Been thanked: 17 times

Re: Install OpenSSH from source.

#9 Post by Segfault »

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.

peter_irich
Posts: 1406
Joined: 2009-09-10 20:15
Location: Saint-Petersburg, Russian Federation
Been thanked: 11 times

Re: Install OpenSSH from source.

#10 Post by peter_irich »

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 ...".

hack3rcon
Posts: 746
Joined: 2015-02-16 09:54
Has thanked: 48 times

Re: Install OpenSSH from source.

#11 Post by hack3rcon »

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".

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 133 times

Re: Install OpenSSH from source.

#12 Post by Head_on_a_Stick »

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
deadbang

hack3rcon
Posts: 746
Joined: 2015-02-16 09:54
Has thanked: 48 times

Re: Install OpenSSH from source.

#13 Post by hack3rcon »

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/".

peter_irich
Posts: 1406
Joined: 2009-09-10 20:15
Location: Saint-Petersburg, Russian Federation
Been thanked: 11 times

Re: Install OpenSSH from source.

#14 Post by peter_irich »

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.

User avatar
None1975
df -h | participant
df -h | participant
Posts: 1410
Joined: 2015-11-29 18:23
Location: Russia, Kaliningrad
Has thanked: 46 times
Been thanked: 70 times

Re: Install OpenSSH from source.

#15 Post by None1975 »

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 12.4 Bookworm / DE: Enlightenment
Debian Wiki | DontBreakDebian, My config files on github

Post Reply