RFE: Report IP in login information
Issue by whitel
Tuesday May 12, 2015 at 13:16 GMT
Originally opened as https://github.com/LalatenduMohanty/centos7-container-app-vagrant-box/issues/20
I am blanking on the term for this, but it would be nice if the ssh and console login messages included displaying the IP of the box. This is actually something I keep meaning to bring up to the cloud sig for both centos and fedora.
Do you mean embedding the IP in the shell prompt? Displaying it when the box is started with vagrant up or what? Is vagrant ssh-config sufficient?
I meant displaying it on ssh login. One of the challenges (i find) with vagrant is that it never actually tells you the IP of the machine if you want to log in to it without "vagrant ssh." So, as far as I can tell, the way I used to do it using "/4" in /etc/issue & /etc/issue.net does not seem to work anymore as the the sshd banner is used instead (except it is disabled). I don't know a whole lot about this so someone more familiar with server admin might know a better answer.
Obviously, you can always do "ip addr" once you are logged in, but I find the automatic display in both vagrant and cloud environments to be handy.
This issue is fixed as part of https://github.com/projectatomic/vagrant-adbinfo plugin. Should we close of the issue ? @bexelbie @navidshaikh @whitel
I think the use case here is to display the IP of the machine for vagrant ssh etc operation.
@LalatenduMohanty : Yes, this is done as part of another use case though via plugin - use case being copy operation of the certs and display information for docker daemon.