[英]Laravel 5.2 connect to remote DB via ssh
我正在通過ssh隧道連接到遠程數據庫
在這里提到
這是DBeaver的屏幕截圖:
和
我正在為ssh做的是:
ssh -i sharp -N -L 13306:127.0.0.1:3306 root@163.182.198.10
但是它說
Permission denied (publickey).
我想念什么?
您指定的公共密鑰不正確。
我的意思是,您給我們的錯誤告訴您。
-i identity_file
Selects a file from which the identity (private key) for public key authentication is read. The default is ~/.ssh/id_dsa, ~/.ssh/id_ecdsa, ~/.ssh/id_ed25519 and
~/.ssh/id_rsa. Identity files may also be specified on a per-host basis in the configuration file. It is possible to have multiple -i options (and multiple
identities specified in configuration files). If no certificates have been explicitly specified by the CertificateFile directive, ssh will also try to load cer-
tificate information from the filename obtained by appending -cert.pub to identity filenames.
出於好奇,是什么阻止了您使用此功能?
https://packagist.org/packages/stechstudio/laravel-ssh-tunnel
也:
如果您閱讀了注釋,則會發現一些問題,這些問題報告了-N選項的問題。 嘗試將其刪除。
-N Do not execute a remote command. This is useful for just forwarding ports.
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.