Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
allworldit
awit-ssh-client
Commits
50f631da
Commit
50f631da
authored
Mar 09, 2020
by
Nigel Kukard
Browse files
Merge branch 'nkupdates' into 'master'
Nkupdates See merge request
!50
parents
7f5a1be6
6da19fe8
Changes
1
Hide whitespace changes
Inline
Side-by-side
awit-ssh
View file @
50f631da
#!/usr/bin/perl
# 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
# it under the terms of the GNU General Public License as published by
...
...
@@ -77,10 +77,10 @@ use User::pwent;
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
...
...
@@ -165,8 +165,8 @@ if (defined(my $rsyncHost = $optctl{'rsync'})) {
# Check if we using libvirt vnc instead of SSH
my
$libvirtVNC
;
if
(
defined
(
my
$vmName
=
$optctl
{'
libvirt-vnc
'}))
{
if
(
!
-
x
'
/usr/bin/
ss
vncviewer
')
{
logger
('
ERROR
',
color
('
magenta
')
.
"
To use --libvirt-vnc you need to install
ss
vncviewer. Hint:
apt-get install ss
vnc
"
.
if
(
!
-
x
'
/usr/bin/vncviewer
')
{
logger
('
ERROR
',
color
('
magenta
')
.
"
To use --libvirt-vnc you need to install vncviewer. Hint:
pacman -Syu tiger
vnc
"
.
color
('
reset
'));
exit
1
;
}
...
...
@@ -767,7 +767,7 @@ if (defined($forwardSocket)) {
);
# Run rsync
system
('
/usr/bin/rsync
',
'
-v
P
',
'
-v
aPHS
',
'
-e
',
$sshCmd
,
@rsyncParams
);
...
...
@@ -824,7 +824,7 @@ if (defined($forwardSocket)) {
);
# Run rsync
system
('
/usr/bin/rsync
',
'
-v
P
',
'
-v
aPHS
',
'
-e
',
$sshCmd
,
@rsyncParams
);
...
...
@@ -883,7 +883,7 @@ if (defined($forwardSocket)) {
# If we still have timeout ticks left, then we connected, hopefully successfully
if
(
$delay
)
{
system
('
/usr/bin/
ss
vncviewer
',
system
('
/usr/bin/vncviewer
',
# '-encodings','copyrect tight hextile zlib corre rre raw',
# '-encodings','tight hextile zlib corre rre raw',
# '-quality','7',
...
...
@@ -1031,7 +1031,7 @@ L<https://gitlab.devlabs.linuxassist.net/allworldit/awit-ssh-client/issues>.
=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
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
=head1 SEE ALSO
L<ssh>(1), L<rsync>(1), L<
ss
vncviewer>(1).
L<ssh>(1), L<rsync>(1), L<vncviewer>(1).
=cut
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment