OpenSSH server: Other version running than installed

Multi tool use
I have an Ubuntu 18.04 server. I installed openssh-server and openssh-client. According to apt, the installed version of both packages is 7.6p1-4ubuntu0.1, but the running version of the ssh-server (sshd) is OpenSSH_6.7p2 Ubuntu-4p1. The version of the client (ssh) is correct.
I already restarted the server several times, but the running version is still the same.
Recently I reinstalled OpenSSH, because my clients couldn't connect to the server with version 6.7. See: SSH connection closed right after login
It worked for a while, but after some system-updates, it switched back to version 6.7. (the installed package is still 7.6)
Could anybody please help me with this? I don't understand how the running version can differ from the package version.
18.04 openssh
|
show 1 more comment
I have an Ubuntu 18.04 server. I installed openssh-server and openssh-client. According to apt, the installed version of both packages is 7.6p1-4ubuntu0.1, but the running version of the ssh-server (sshd) is OpenSSH_6.7p2 Ubuntu-4p1. The version of the client (ssh) is correct.
I already restarted the server several times, but the running version is still the same.
Recently I reinstalled OpenSSH, because my clients couldn't connect to the server with version 6.7. See: SSH connection closed right after login
It worked for a while, but after some system-updates, it switched back to version 6.7. (the installed package is still 7.6)
Could anybody please help me with this? I don't understand how the running version can differ from the package version.
18.04 openssh
 
 
 
 
 
 
 
 How did you determine that version- OpenSSH_6.7p2 Ubuntu-4p1is running? What is the output of- dpkg -l | grep openssh? Add both to your question by editing your question.
 
 – Thomas
 Dec 30 '18 at 12:07
 
 
 
 
 
 
 
 
 
 
 Package names (and numbers) are not the same as version numbers.
 
 – guiverc
 Dec 30 '18 at 12:08
 
 
 
 
 
 
 
 
 
 
 
 
 @Thomas I executed- sshd -V(and- /usr/sbin/sshd -Vwhich resulted in the same output). Additionally, my client on OS X tells me that the server is using- OpenSSH_6.7p2. The output of your command is a table with openssh-client, -server and -sftp-server. The version is- 1:7.6p1-4ubuntu0.1for all of them.
 
 – FelixSFD
 Dec 30 '18 at 12:11
 
 
 
 
 
 
 
 
 
 
 
 
 @guiverc: not necessarily, but if you have such a big difference in versions, then something is wrong.
 
 – Thomas
 Dec 30 '18 at 12:22
 
 
 
 
 
 
 
 
 
 
 @FelixSFD: so- sshd -Vdoes result in- OpenSSH_6.7p2? Did you somehow overwrite the binaries in- /usr/sbin/sshdby copying things or similar?
 
 – Thomas
 Dec 30 '18 at 12:26
 
 
 
|
show 1 more comment
I have an Ubuntu 18.04 server. I installed openssh-server and openssh-client. According to apt, the installed version of both packages is 7.6p1-4ubuntu0.1, but the running version of the ssh-server (sshd) is OpenSSH_6.7p2 Ubuntu-4p1. The version of the client (ssh) is correct.
I already restarted the server several times, but the running version is still the same.
Recently I reinstalled OpenSSH, because my clients couldn't connect to the server with version 6.7. See: SSH connection closed right after login
It worked for a while, but after some system-updates, it switched back to version 6.7. (the installed package is still 7.6)
Could anybody please help me with this? I don't understand how the running version can differ from the package version.
18.04 openssh
I have an Ubuntu 18.04 server. I installed openssh-server and openssh-client. According to apt, the installed version of both packages is 7.6p1-4ubuntu0.1, but the running version of the ssh-server (sshd) is OpenSSH_6.7p2 Ubuntu-4p1. The version of the client (ssh) is correct.
I already restarted the server several times, but the running version is still the same.
Recently I reinstalled OpenSSH, because my clients couldn't connect to the server with version 6.7. See: SSH connection closed right after login
It worked for a while, but after some system-updates, it switched back to version 6.7. (the installed package is still 7.6)
Could anybody please help me with this? I don't understand how the running version can differ from the package version.
18.04 openssh
18.04 openssh
asked Dec 30 '18 at 11:53
FelixSFDFelixSFD
1187
1187
 
 
 
 
 
 
 
 How did you determine that version- OpenSSH_6.7p2 Ubuntu-4p1is running? What is the output of- dpkg -l | grep openssh? Add both to your question by editing your question.
 
 – Thomas
 Dec 30 '18 at 12:07
 
 
 
 
 
 
 
 
 
 
 Package names (and numbers) are not the same as version numbers.
 
 – guiverc
 Dec 30 '18 at 12:08
 
 
 
 
 
 
 
 
 
 
 
 
 @Thomas I executed- sshd -V(and- /usr/sbin/sshd -Vwhich resulted in the same output). Additionally, my client on OS X tells me that the server is using- OpenSSH_6.7p2. The output of your command is a table with openssh-client, -server and -sftp-server. The version is- 1:7.6p1-4ubuntu0.1for all of them.
 
 – FelixSFD
 Dec 30 '18 at 12:11
 
 
 
 
 
 
 
 
 
 
 
 
 @guiverc: not necessarily, but if you have such a big difference in versions, then something is wrong.
 
 – Thomas
 Dec 30 '18 at 12:22
 
 
 
 
 
 
 
 
 
 
 @FelixSFD: so- sshd -Vdoes result in- OpenSSH_6.7p2? Did you somehow overwrite the binaries in- /usr/sbin/sshdby copying things or similar?
 
 – Thomas
 Dec 30 '18 at 12:26
 
 
 
|
show 1 more comment
 
 
 
 
 
 
 
 How did you determine that version- OpenSSH_6.7p2 Ubuntu-4p1is running? What is the output of- dpkg -l | grep openssh? Add both to your question by editing your question.
 
 – Thomas
 Dec 30 '18 at 12:07
 
 
 
 
 
 
 
 
 
 
 Package names (and numbers) are not the same as version numbers.
 
 – guiverc
 Dec 30 '18 at 12:08
 
 
 
 
 
 
 
 
 
 
 
 
 @Thomas I executed- sshd -V(and- /usr/sbin/sshd -Vwhich resulted in the same output). Additionally, my client on OS X tells me that the server is using- OpenSSH_6.7p2. The output of your command is a table with openssh-client, -server and -sftp-server. The version is- 1:7.6p1-4ubuntu0.1for all of them.
 
 – FelixSFD
 Dec 30 '18 at 12:11
 
 
 
 
 
 
 
 
 
 
 
 
 @guiverc: not necessarily, but if you have such a big difference in versions, then something is wrong.
 
 – Thomas
 Dec 30 '18 at 12:22
 
 
 
 
 
 
 
 
 
 
 @FelixSFD: so- sshd -Vdoes result in- OpenSSH_6.7p2? Did you somehow overwrite the binaries in- /usr/sbin/sshdby copying things or similar?
 
 – Thomas
 Dec 30 '18 at 12:26
 
 
 
How did you determine that version
OpenSSH_6.7p2 Ubuntu-4p1 is running? What is the output of dpkg -l | grep openssh? Add both to your question by editing your question.– Thomas
Dec 30 '18 at 12:07
How did you determine that version
OpenSSH_6.7p2 Ubuntu-4p1 is running? What is the output of dpkg -l | grep openssh? Add both to your question by editing your question.– Thomas
Dec 30 '18 at 12:07
Package names (and numbers) are not the same as version numbers.
– guiverc
Dec 30 '18 at 12:08
Package names (and numbers) are not the same as version numbers.
– guiverc
Dec 30 '18 at 12:08
@Thomas I executed
sshd -V (and /usr/sbin/sshd -V which resulted in the same output). Additionally, my client on OS X tells me that the server is using  OpenSSH_6.7p2. The output of your command is a table with openssh-client, -server and -sftp-server. The version is 1:7.6p1-4ubuntu0.1 for all of them.– FelixSFD
Dec 30 '18 at 12:11
@Thomas I executed
sshd -V (and /usr/sbin/sshd -V which resulted in the same output). Additionally, my client on OS X tells me that the server is using  OpenSSH_6.7p2. The output of your command is a table with openssh-client, -server and -sftp-server. The version is 1:7.6p1-4ubuntu0.1 for all of them.– FelixSFD
Dec 30 '18 at 12:11
@guiverc: not necessarily, but if you have such a big difference in versions, then something is wrong.
– Thomas
Dec 30 '18 at 12:22
@guiverc: not necessarily, but if you have such a big difference in versions, then something is wrong.
– Thomas
Dec 30 '18 at 12:22
@FelixSFD: so
sshd -V does result in OpenSSH_6.7p2? Did you somehow overwrite the binaries in /usr/sbin/sshd by copying things or similar?– Thomas
Dec 30 '18 at 12:26
@FelixSFD: so
sshd -V does result in OpenSSH_6.7p2? Did you somehow overwrite the binaries in /usr/sbin/sshd by copying things or similar?– Thomas
Dec 30 '18 at 12:26
|
show 1 more comment
                            0
                        
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1105581%2fopenssh-server-other-version-running-than-installed%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
                            0
                        
active
oldest
votes
                            0
                        
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1105581%2fopenssh-server-other-version-running-than-installed%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
uBqAXG 9vMrlQiKeBxL0Vdk7RvCX8JDq,GyAnGC,1uSw1yw
How did you determine that version
OpenSSH_6.7p2 Ubuntu-4p1is running? What is the output ofdpkg -l | grep openssh? Add both to your question by editing your question.– Thomas
Dec 30 '18 at 12:07
Package names (and numbers) are not the same as version numbers.
– guiverc
Dec 30 '18 at 12:08
@Thomas I executed
sshd -V(and/usr/sbin/sshd -Vwhich resulted in the same output). Additionally, my client on OS X tells me that the server is usingOpenSSH_6.7p2. The output of your command is a table with openssh-client, -server and -sftp-server. The version is1:7.6p1-4ubuntu0.1for all of them.– FelixSFD
Dec 30 '18 at 12:11
@guiverc: not necessarily, but if you have such a big difference in versions, then something is wrong.
– Thomas
Dec 30 '18 at 12:22
@FelixSFD: so
sshd -Vdoes result inOpenSSH_6.7p2? Did you somehow overwrite the binaries in/usr/sbin/sshdby copying things or similar?– Thomas
Dec 30 '18 at 12:26