寫了這樣多EC2不過好像沒有寫如何開始用.每個人都可以在AWS免費開一個戶口,在開設的時候需要填寫信用卡,然後就可以開free tier的服務,當然free tier都是低端的.有沒有額外服務我不清楚.
在這之前,電腦需要三個軟體來讓你登錄你的EC2instance:
1. Cygwin
2. Putty
3. Winscp
一切就緒後,在EC2->Network & Security->Key Pairs裡弄一個key pair,這是讓你安全登錄你的EC2 instance,切記不要把它弄不見或刪除掉.過後你就可以在EC2開設全新的instance了,在開設instance的其中一個步驟會問你要用哪一個key pair,那時候就派上用場了.
下載key pair後記得拷貝一份放在安全的地方,放在cloud也行(dropbox,google drive)等,然後把其中的一個拷貝放進你在cygwin的home folder裡(c:cygwin/home/user/).那樣你才可以在cygwin上登入你的ec2 instance.
1. Cygwin
在cygwin登錄的command如下:
#ssh -i xxx.pem ec2-user@ip address
EC2的instance的default user是ec2-user,我在前一篇有教過怎樣給其他用戶登錄,依照之前的那一篇就可以讓你的user登錄EC2 instance了.
2. Putty
除此之外,你還可以用putty來登入,不過得先把你的key pair轉換成private key,用的也是putty的puttygen.
首先開啟puttygen,然後選擇load,在file type裡選All Files,打開你的c:/cygwin/home/user裡的xxx.pem,然後按下Save Private Key.
好了後把剛才的private key拷貝到另外一個地方,再開啟putty,在SSH欄按browse,把剛才的private key attach上,再到回去主頁,把你的EC2的public ip address填上,save起來,然後在按open,你就可以ssh去你的EC2 instance了.
3. Winscp
如果有需要把文件上載到EC2 Instance(這是必然的,不然開EC2搞屁嗎),那得用winscp了.zai開啟了winscp後,按New Site,然後在SSH->Authentication,跟putty一樣把剛才的private key attach上,按ok,然後把你EC2的ip address,login name等填上,按login就可以了.
相關連線
http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/putty.html
New M5 iPad Pro and Apple Vision Pro in Apple's 2025 part two, on the
AppleInsider Podcast
-
In this second of two special episodes, we examine Apple's 2025 and this
time July to December. It's six months of new devices, new rumors, and old
legal b...
23 分鐘前



沒有留言:
張貼留言