Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dotfiles
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Gerhard Gonter
dotfiles
Commits
6888c924
Commit
6888c924
authored
Dec 29, 2016
by
Gerhard Gonter
Browse files
Options
Downloads
Patches
Plain Diff
compatibily issue with CentOS release 6.8 (Final)
parent
622d61c1
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
show_fingerprints.pl
+14
-1
14 additions, 1 deletion
show_fingerprints.pl
with
14 additions
and
1 deletion
show_fingerprints.pl
+
14
−
1
View file @
6888c924
...
@@ -42,8 +42,11 @@ foreach my $file (@files)
...
@@ -42,8 +42,11 @@ foreach my $file (@files)
sub
get_ssh_version
sub
get_ssh_version
{
{
my
@cmd
=
qw(ssh-keygen --version)
;
# apparently, there is way to display the version directly
# my @cmd= qw(ssh-keygen --version); # apparently, there is way to display the version directly
my
@cmd
=
qw(ssh-keygen -?)
;
# apparently, --version does not fail as expected on some systems, e.g. openssh-5.3p1-118.1.el6_8.x86_64
# print "cmd: ", join (' ', @cmd), "\n";
my
$res
=
`
@cmd
2>&1
`;
my
$res
=
`
@cmd
2>&1
`;
# print "res=[$res]\n";
my
$version
=
'
unknown
';
my
$version
=
'
unknown
';
my
$has_E
=
0
;
my
$has_E
=
0
;
...
@@ -58,6 +61,16 @@ sub get_ssh_version
...
@@ -58,6 +61,16 @@ sub get_ssh_version
(
$version
,
$has_E
);
(
$version
,
$has_E
);
}
}
=head1 COMPATIBILITY
=head2 Ubuntu
* openssh-client 1:7.2p2-4ubuntu2.1
=head2 CentOS
* openssh-5.3p1-118.1.el6_8.x86_64
=head1 TODO
=head1 TODO
optionally display fingerprints using other hashing algorithms
optionally display fingerprints using other hashing algorithms
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment