zoukankan      html  css  js  c++  java
  • Using ssh connect to Amazon EC2 instance Anny

    Using ssh to remote login instance in EC2:

    xxx@xxx-Lenovo-Product:~$ ssh -i /home/xxx/Documents/privatekey/west.pem ubuntu@x.x.x.x

    The output is below:
    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    @         WARNING: UNPROTECTED PRIVATE KEY FILE!          @
    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    Permissions 0644 for '/home/xxx/Documents/privatekey/west.pem' are too open.
    It is recommended that your private key files are NOT accessible by others.
    This private key will be ignored.
    bad permissions: ignore key: /home/xxx/Documents/CloudFloorWestPem/cloudfloor-west.pem
    Permission denied (publickey).

    Look for the workaround from internet, and find this maybe related with permission for other group/users, then execute command below:
    xxx@xxx-Lenovo-Product:~$ chmod og-r /home/xxx/Documents/privatekey/west.pem
    xxx@xxx-Lenovo-Product:~$ ssh -i /home/xxx/Documents/privatekey/west.pem ubuntu@x.x.x.x
    Linux ip-10-168-75-242 2.6.35-24-virtual #42-Ubuntu SMP Thu Dec 2 05:01:52 UTC 2010 i686 GNU/Linux
    Ubuntu 10.10

    In the Elasticfox, we need to modify 'SSH Arguments' in 'Tools', set x /usr/bin/ssh -i "${key}" ${user}@${host} to -x /usr/bin/ssh -i "${key}" ubuntu@${host}

  • 相关阅读:
    3.Linux系统信息
    2.LINUX常用命令
    1.CMD命令
    8.变量内存CPU原理
    17.I/O系统访问方式和类型
    16.磁盘调度
    15.大容量存储结构
    cluvfy comp命令用法
    禁用DRM
    Oracle数据库升级前必要的准备工作
  • 原文地址:https://www.cnblogs.com/limei/p/2044604.html
Copyright © 2011-2022 走看看