2017年10月26日 星期四

windows下使用putty連接codeanywhere wordpress

怕忘記 留個筆記

首先 download Putty和RSA擷取工具
putty.exe puttygen.exe

到codeanywhere登入後右鍵你的wordpress按config複製網址 網址樣子應該是這樣:
hostX.codeanyhost.com:XXXXX

X是數字
然後右鍵wordpress按SSH terminal輸入以下指令取得private key

cat ../.ssh/id_rsa

或者public key(如有需要)
cat ../.ssh/id_rsa.pub



複製輸出儲存作id_rsa然後打開 puttygen.exe按File->Load private key如果successfully就按save private key(如果用其他工具如Chrome Secure Shell這步驟可跳過)

打開putty.exe輸入host name和port number(就是一開始的網址)
在connection->ssh->auth->private key file for authertication匯入你的private key(處理後的)

按open username輸入cabox 拍Enter

完成

Chrome Secure Shell 上網找到更加方便

1.Give the connection a name
2.Use the username cabox
3.Fill out the hostname and port
4.Next to Identity, click Import. When file selection screen opens, choose both the id_rsa and the id_rsa.pub files
5.Once the Identity has been imported, you should be able to connect to your CodeAnywhere container.

沒有留言:

張貼留言