Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Drupal\Core\FileTransfer\SSH.php provides function to connect using username and password. But there is no function to validate username and password (or ssh key). This ticket is to create a public function checkConnection() to do this.
Comment | File | Size | Author |
---|---|---|---|
#12 | drupal_core-php-ssh2-check-verification-3022646-12-D8.patch | 8.17 KB | abhaisasidharan |
Comments
Comment #2
cilefen CreditAttribution: cilefen at Institute for Advanced Study commentedWhat is the use case?
Comment #3
abhaisasidharan CreditAttribution: abhaisasidharan as a volunteer commented@cilefen I am using this for the https://www.drupal.org/project/sceditor. This is my module to edit code on browser itself. I use it to quickly edit code on my website if and when required for development. I want to use more secure methods (username/password || publickey). Right now if i take in user credentials as input, there is no way to validate the credentials without a WSOD.
Comment #4
abhaisasidharan CreditAttribution: abhaisasidharan as a volunteer commentedPatch for the same :
Comment #5
abhaisasidharan CreditAttribution: abhaisasidharan as a volunteer commentedDone.
Comment #6
abhaisasidharan CreditAttribution: abhaisasidharan as a volunteer commentedAdded support for creating sftp subsytem.
Comment #7
cilefen CreditAttribution: cilefen at Institute for Advanced Study commentedComment #9
abhaisasidharan CreditAttribution: abhaisasidharan as a volunteer commentedFixed code review issues.
Comment #10
abhaisasidharan CreditAttribution: abhaisasidharan as a volunteer commentedComment #11
abhaisasidharan CreditAttribution: abhaisasidharan as a volunteer commentedComment #12
abhaisasidharan CreditAttribution: abhaisasidharan as a volunteer commented