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
emulab
emulab-devel
Commits
353c8ebb
Commit
353c8ebb
authored
Feb 03, 2004
by
Leigh B. Stoller
Browse files
Kill ssh warning when command fails since it is confusing.
parent
8ad35d50
Changes
1
Hide whitespace changes
Inline
Side-by-side
security/plasticwrap.in
View file @
353c8ebb
#!/usr/bin/perl -w
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-200
3
University of Utah and the Flux Group.
# Copyright (c) 2000-200
4
University of Utah and the Flux Group.
# All rights reserved.
#
...
...
@@ -50,13 +50,4 @@ if (!($cwd =~ qr|/users|) &&
$sshcmd
=
"
$ssh
$identity
$nopass
$nokeycheck
$host
'cd
$cwd
\
; $0
@ARGV
'
";
#print "About to run $sshcmd\n";
$rv
=
system
$sshcmd
;
if
(
$rv
>
256
)
{
print
"
**********
\n
";
print
"
SSH failed. You may need to run the following commands:
\n\n
";
print
"
mkdir -m 0755
$ENV
{HOME}/.ssh
\n
";
print
"
ssh-keygen -P '' -t rsa1 -f
$ENV
{HOME}/.ssh/identity
\n
";
print
"
cp
$ENV
{HOME}/.ssh/identity.pub
$ENV
{HOME}/.ssh/authorized_keys
\n
";
print
"
chmod 600
$ENV
{HOME}/.ssh/authorized_keys
\n
";
print
"
**********
\n
";
}
exit
(
$rv
>>
8
);
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