Skip to content

Commit

Permalink
add ssh-dss to HostKeyAlgorithms, needed to connect to COM sftp server
Browse files Browse the repository at this point in the history
  • Loading branch information
Smullz622 authored Aug 7, 2024
1 parent 4d2bbd0 commit 2bb45eb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bin/com-effort-quality.sh
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
Expand Down

0 comments on commit 2bb45eb

Please sign in to comment.