このコードを使用して、更新後のフック git から Slack チャネルでメッセージを送信しようとしています:
#!/bin/bash
#echo "********* Notification Slack *********"
curl -X POST -H 'Content-type: application/json' --data '{"text":"Hello, World!"}'
https://hooks.slack.com/services/XXX/xxx/xxxxxx
私はこのエラーがあります:
0curl: (7) Failed to connect to hooks.slack.com port 443: Connexion refused to ssh://ssh..../hub.git
何か案が?