SSH to AWS Instance without key pairs

后端 未结 6 1552
轻奢々
轻奢々 2020-12-04 06:45

1: Is there a way to log in to an AWS instance without using key pairs? I want to set up a couple of sites/users on a single instance. However, I don\'t want to give out key

6条回答
  •  -上瘾入骨i
    2020-12-04 07:34

    su - root

    Goto /etc/ssh/sshd_config

    vi sshd_config

    Authentication:

    PermitRootLogin yes

    To enable empty passwords, change to yes (NOT RECOMMENDED)

    PermitEmptyPasswords no

    Change to no to disable tunnelled clear text passwords

    PasswordAuthentication yes

    :x!

    Then restart ssh service

    root@cloudera2:/etc/ssh# service ssh restart
    ssh stop/waiting
    ssh start/running, process 10978
    

    Now goto sudoers files (/etc/sudoers).

    User privilege specification

    root  ALL=(ALL)NOPASSWD:ALL
    yourinstanceuser  ALL=(ALL)NOPASSWD:ALL    / This is the user by which you are launching instance.
    

提交回复
热议问题