-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add ssh-dss to HostKeyAlgorithms, needed to connect to COM sftp server
- Loading branch information
Showing
1 changed file
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
#!/bin/bash | ||
|
||
# Using SFTP connection with COM SFTP host to pull file names in order of most to least recent | ||
OUTPUT=$(sftp -P 22 -b bin/com_sftp_newest.bat -i ~/.ssh/id_rsa_psu_health [email protected]) | ||
OUTPUT=$(sftp -P 22 -o HostKeyAlgorithms=+ssh-dss -b bin/com_sftp_newest.bat -i ~/.ssh/id_rsa_psu_health [email protected]) | ||
|
||
# Iterate over the above output and find the first "effort" and "quality" files, pull them, and break when two files have been pulled | ||
count=0 | ||
for x in $OUTPUT | ||
do | ||
if [[ "$x" =~ "ume_faculty_effort" ]]; then | ||
sftp -P 22 -r -i ~/.ssh/id_rsa_psu_health [email protected]:/$x app/parsing_files/ume_faculty_effort.csv | ||
sftp -P 22 -r -o HostKeyAlgorithms=+ssh-dss -i ~/.ssh/id_rsa_psu_health [email protected]:/$x app/parsing_files/ume_faculty_effort.csv | ||
let count++ | ||
fi | ||
if [[ "$x" =~ "ume_faculty_quality" ]]; then | ||
sftp -P 22 -r -i ~/.ssh/id_rsa_psu_health [email protected]:/$x app/parsing_files/ume_faculty_quality.csv | ||
sftp -P 22 -r -o HostKeyAlgorithms=+ssh-dss -i ~/.ssh/id_rsa_psu_health [email protected]:/$x app/parsing_files/ume_faculty_quality.csv | ||
let count++ | ||
fi | ||
if [ "$count" == 2 ]; then | ||
|