我創建了一個實例來託管我的wordpress博客。我做了一個密鑰對,使用PuTTY Gen對其進行轉換,以便它可以與winscp一起工作。這與我的實例相關聯Amazon EC2如何在Bitnami-Wordpress實例上託管我自己的內容
我的安全組有:
ICMP Allow All
TCP 0-65535
TCP 22 (SSH)
TCP 80 (HTTP)
TCP 443 (HTTPS)
UDP 0-65535
我運行Bitnami,WordPress的3.2.1-0的Ubuntu AMI
我的問題是:我如何在我的實例上託管一個簡單的文件?
更新:所以我能夠用SFTP在我的實例公共DNS簡單地填寫登錄我的主機,膩子根密鑰的私有密鑰,用戶名我不得不使用是Bitnami。所以現在我可以訪問服務器,我怎樣或在哪裏放置一個文件,以便它會出來www.mywebsite.com/myfile.file?
我假設我需要使用膩子SSH進入服務器,並將其添加到WWW directoroy?
我曾嘗試:
我試着使用WinSCP賦予與主機名是我的實例的公共DNS,和我的私人密鑰文件最初是爲實例的密鑰對轉換後的膩子根文件記錄。
使用SFTP,在登陸它要求我輸入一個用戶名,輸入「用戶」或「EC2用戶」我得到一個錯誤說:
"disconnected, no supported authentication methods available (server sent: public key), Server >refused our key. Authentication failed.
用root的用戶名,它詢問我使用膩子根密鑰對我,它接受它創建一個密碼,但後來我得到這個錯誤:
"Received too large (1349281121 B) SFTP packet. Max supported packet size is 1024000 B. The error >is typically caused by message printed from startup script (like .profile). The message may start >with ""Plea"". Cannot initialize SFTP protocol. Is the host running a SFTP server?
如果WinSCP賦予我把牛逼他用戶名是「用戶」,密碼爲「bitnami」(之前我按登錄)(用於bitnami AMI WordPress默認密碼),它給了我這個錯誤:
Disconnected: No supported authentication methods available (server sent: publickey). Authentication log (see session log for details):Using username: "user". Server refused ourkey. Authentication failed.
- 我得到使用SCP同樣的錯誤,而不是除了當我使用SCP,我按下登錄,我用的用戶名「根」 SFTP在WinSCP賦予的,它要求我爲我的密碼,進入後,我得到這個錯誤:如果你已經能夠
Connection has been unexpectedly closed. Server sent command exit status 0. Error skipping startup message. Your shell is probably incompatible with the application (BASH is recommended).