sshでログインしようとしたらできない!
勉強中にvagrantでsshログインしようとした際に詰まったので備忘録として残します。
vagrant up
でOS起動して
vagrant ssh
でログインしようとしたら、下記のエラーが発生。
Pseudo-terminal will not be allocated because stdin is not a terminal.
Welcome to Ubuntu 14.04.5 LTS (GNU/Linux 3.13.0-108-generic x86_64)
* Documentation: https://help.ubuntu.com/
System information as of Mon Feb 6 22:40:57 UTC 2017
System load: 0.16 Processes: 95
Usage of /: 6.0% of 39.34GB Users logged in: 0
Memory usage: 19% IP address for eth0: 10.0.2.15
Swap usage: 0%
Graph this data and manage this system at:
https://landscape.canonical.com/
Get cloud support with Ubuntu Advantage Cloud Guest:
http://www.ubuntu.com/business/services/cloud
あれ、本の通りに行かない。
Google検索したところ回避方法?を発見。
vagrant ssh-config >> ~/.ssh/config
の後に
ssh default
こうすればログインできました!