Skip to content

Commit

Permalink
Trying to create an SSH config file.
Browse files Browse the repository at this point in the history
  • Loading branch information
zinigor committed Jan 15, 2025
1 parent 3ff1bea commit 131ac21
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/wpcloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,16 +110,24 @@ jobs:
touch ~/.ssh/id_site
touch ~/.ssh/known_hosts
touch ~/.ssh/config
chmod 600 ~/.ssh/id_site
chmod 600 ~/.ssh/known_hosts
chmod 600 ~/.ssh/config
echo "$SSH_KEY" > ~/.ssh/id_site
echo "wrote ~/.ssh/id_site"
echo "$SSH_KNOWN_HOSTS" > ~/.ssh/known_hosts
echo "wrote ~/.ssh/known_hosts"
echo "Host jpwpcomsh" > ~/.ssh/config
echo " Hostname sftp.wp.com" >> ~/.ssh/config
echo " User wpcom-jetpackisbestpack-default-237778992" >> ~/.ssh/config
echo " IdentityFile ~/.ssh/id_jetpackisbestpack" >> ~/.ssh/config
echo " IdentitiesOnly yes" >> ~/.ssh/config
echo "::endgroup::"
echo "::group::Transferring wpcomsh to the testing server"
ssh -v jpwpcomsh "exit"
pnpm jetpack rsync wpcomsh wpcom-jetpackisbestpack-default-237778992@sftp.wp.com:~/htdocs/wp-content/mu-plugins
scp -r projects/plugins/wpcomsh/bin wpcom-jetpackisbestpack-default-237778992@sftp.wp.com:/srv/htdocs/wp-content/mu-plugins/wpcomsh
scp -r projects/plugins/wpcomsh/tests wpcom-jetpackisbestpack-default-237778992@sftp.wp.com:/srv/htdocs/wp-content/mu-plugins/wpcomsh/
Expand Down

0 comments on commit 131ac21

Please sign in to comment.