FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
unattended-setup-scripts/scppass.sh at master · cloudbase/unattended-setup-scripts · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
cloudbase
/
unattended-setup-scripts
Public
Notifications
You must be signed in to change notification settings
Fork
62
Star
120
Code
Issues
3
Pull requests
1
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
unattended-setup-scripts
/
scppass.sh
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
19 lines (15 loc) · 267 Bytes
Breadcrumbs
unattended-setup-scripts
/
scppass.sh
Copy path
File metadata and controls
executable file
·
19 lines (15 loc) · 267 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!
/bin/sh
set
-e
if
[
$#
-ne
3 ]
;
then
echo
"
Usage:
$0
<src> <dest> <ssh_password>
"
exit
1
fi
SRC=
$1
DEST=
$2
PWD=
$3
/usr/bin/expect
<<
EOD
spawn scp -oStrictHostKeyChecking=no -oCheckHostIP=no "
$SRC
" "
$DEST
"
expect "password"
send "
$PWD
\n"
expect eof
EOD
Back
|
FazBrowse Home
|
New Git URL