# Failed to connect and initialize SSH connection. Message: \[Failed to connect SFTP channel. Message \[failed to send channel request\]\]

**URL:** <https://community.jenkins.io/t/failed-to-connect-and-initialize-ssh-connection-message-failed-to-connect-sftp-channel-message-failed-to-send-channel-request/12109>\
**Category:** Using Jenkins\
**Tags:** question, pipeline\
**Created:** [January 30, 2024, 3:41pm UTC](https://community.jenkins.io/t/failed-to-connect-and-initialize-ssh-connection-message-failed-to-connect-sftp-channel-message-failed-to-send-channel-request/12109 "2024-01-30T15:41:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![eliphaz](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/eliphaz/32/6876_2.png) [@eliphaz](https://community.jenkins.io/u/eliphaz)\
**Post date:** [January 30, 2024, 3:41pm UTC](https://community.jenkins.io/t/failed-to-connect-and-initialize-ssh-connection-message-failed-to-connect-sftp-channel-message-failed-to-send-channel-request/12109/1 "2024-01-30T15:41:14Z")

</div>

Jenkins setup:  
Jenkins LTS version from docker hub  
I get this error when I try to connect Jenkins to SSH :

 ![2024-01-30_14-59](https://europe1.discourse-cdn.com/flex013/uploads/jenkins/original/2X/c/c99511d487700cae310f08a06d39489bfd8383a0.png)

I use Passphrase/ Password and SSH private key.  
All my credentials is correct but I have this error I don’t know why.

---

<div class="post-metadata">

**Author:** ![eliphaz](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/eliphaz/32/6876_2.png) [@eliphaz](https://community.jenkins.io/u/eliphaz)\
**Post date:** [January 30, 2024, 3:41pm UTC](https://community.jenkins.io/t/failed-to-connect-and-initialize-ssh-connection-message-failed-to-connect-sftp-channel-message-failed-to-send-channel-request/12109/2 "2024-01-30T15:41:45Z")

</div>

the SSH top configuration :

 ![2024-01-30_15-40](https://europe1.discourse-cdn.com/flex013/uploads/jenkins/original/2X/3/3085f9d2d216fc768e61505ce3be86a8a6d07191.png)

---

<div class="post-metadata">

**Author:** ![eliphaz](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/eliphaz/32/6876_2.png) [@eliphaz](https://community.jenkins.io/u/eliphaz)\
**Post date:** [January 30, 2024, 4:16pm UTC](https://community.jenkins.io/t/failed-to-connect-and-initialize-ssh-connection-message-failed-to-connect-sftp-channel-message-failed-to-send-channel-request/12109/3 "2024-01-30T16:16:59Z")

</div>

I have fixed this issue by configured stfp 🙂 for the user
