Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
awit-ssh-client
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
allworldit
awit-ssh-client
Commits
50f631da
Commit
50f631da
authored
5 years ago
by
Nigel Kukard
Browse files
Options
Downloads
Plain Diff
Merge branch 'nkupdates' into 'master'
Nkupdates See merge request
!50
parents
7f5a1be6
6da19fe8
Branches
master
Tags
v0.8.13
1 merge request
!50
Nkupdates
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
awit-ssh
+10
-10
10 additions, 10 deletions
awit-ssh
with
10 additions
and
10 deletions
awit-ssh
+
10
−
10
View file @
50f631da
#!/usr/bin/perl
#!/usr/bin/perl
# awit-ssh - SSH initiator which searches LDAP for host details
# awit-ssh - SSH initiator which searches LDAP for host details
# Copyright (c) 2016-20
19
, AllWorldIT
# Copyright (c) 2016-20
20
, AllWorldIT
#
#
# This program is free software: you can redistribute it and/or modify
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# it under the terms of the GNU General Public License as published by
...
@@ -77,10 +77,10 @@ use User::pwent;
...
@@ -77,10 +77,10 @@ use User::pwent;
my
$NAME
=
"
AWIT-SSH-Client
";
my
$NAME
=
"
AWIT-SSH-Client
";
our
$VERSION
=
"
0.8.1
2
";
our
$VERSION
=
"
0.8.1
3
";
print
(
STDERR
"
$NAME
v
$VERSION
- Copyright (c) 2016-20
19
, AllWorldIT
\n\n
");
print
(
STDERR
"
$NAME
v
$VERSION
- Copyright (c) 2016-20
20
, AllWorldIT
\n\n
");
=head1 OPTIONS
=head1 OPTIONS
...
@@ -165,8 +165,8 @@ if (defined(my $rsyncHost = $optctl{'rsync'})) {
...
@@ -165,8 +165,8 @@ if (defined(my $rsyncHost = $optctl{'rsync'})) {
# Check if we using libvirt vnc instead of SSH
# Check if we using libvirt vnc instead of SSH
my
$libvirtVNC
;
my
$libvirtVNC
;
if
(
defined
(
my
$vmName
=
$optctl
{'
libvirt-vnc
'}))
{
if
(
defined
(
my
$vmName
=
$optctl
{'
libvirt-vnc
'}))
{
if
(
!
-
x
'
/usr/bin/
ss
vncviewer
')
{
if
(
!
-
x
'
/usr/bin/vncviewer
')
{
logger
('
ERROR
',
color
('
magenta
')
.
"
To use --libvirt-vnc you need to install
ss
vncviewer. Hint:
apt-get install ss
vnc
"
.
logger
('
ERROR
',
color
('
magenta
')
.
"
To use --libvirt-vnc you need to install vncviewer. Hint:
pacman -Syu tiger
vnc
"
.
color
('
reset
'));
color
('
reset
'));
exit
1
;
exit
1
;
}
}
...
@@ -767,7 +767,7 @@ if (defined($forwardSocket)) {
...
@@ -767,7 +767,7 @@ if (defined($forwardSocket)) {
);
);
# Run rsync
# Run rsync
system
('
/usr/bin/rsync
',
system
('
/usr/bin/rsync
',
'
-v
P
',
'
-v
aPHS
',
'
-e
',
$sshCmd
,
'
-e
',
$sshCmd
,
@rsyncParams
@rsyncParams
);
);
...
@@ -824,7 +824,7 @@ if (defined($forwardSocket)) {
...
@@ -824,7 +824,7 @@ if (defined($forwardSocket)) {
);
);
# Run rsync
# Run rsync
system
('
/usr/bin/rsync
',
system
('
/usr/bin/rsync
',
'
-v
P
',
'
-v
aPHS
',
'
-e
',
$sshCmd
,
'
-e
',
$sshCmd
,
@rsyncParams
@rsyncParams
);
);
...
@@ -883,7 +883,7 @@ if (defined($forwardSocket)) {
...
@@ -883,7 +883,7 @@ if (defined($forwardSocket)) {
# If we still have timeout ticks left, then we connected, hopefully successfully
# If we still have timeout ticks left, then we connected, hopefully successfully
if
(
$delay
)
{
if
(
$delay
)
{
system
('
/usr/bin/
ss
vncviewer
',
system
('
/usr/bin/vncviewer
',
# '-encodings','copyrect tight hextile zlib corre rre raw',
# '-encodings','copyrect tight hextile zlib corre rre raw',
# '-encodings','tight hextile zlib corre rre raw',
# '-encodings','tight hextile zlib corre rre raw',
# '-quality','7',
# '-quality','7',
...
@@ -1031,7 +1031,7 @@ L<https://gitlab.devlabs.linuxassist.net/allworldit/awit-ssh-client/issues>.
...
@@ -1031,7 +1031,7 @@ L<https://gitlab.devlabs.linuxassist.net/allworldit/awit-ssh-client/issues>.
=head1 LICENSE AND COPYRIGHT
=head1 LICENSE AND COPYRIGHT
Copyright (C) 2016-20
19
, AllWorldIT
Copyright (C) 2016-20
20
, AllWorldIT
This program is free software: you can redistribute it and/or modify
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
it under the terms of the GNU General Public License as published by
...
@@ -1040,7 +1040,7 @@ the Free Software Foundation, either version 3 of the License, or
...
@@ -1040,7 +1040,7 @@ the Free Software Foundation, either version 3 of the License, or
=head1 SEE ALSO
=head1 SEE ALSO
L<ssh>(1), L<rsync>(1), L<
ss
vncviewer>(1).
L<ssh>(1), L<rsync>(1), L<vncviewer>(1).
=cut
=cut
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