Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what actually happens when "ssh localhost" command is executed [closed]

Tags:

linux

ssh

Today when reading article which describe how to install Hadoop, the author uses: ssh localhost

what does the command mean?

Below is this article's location? http://codesfusion.blogspot.com/2013/10/setup-hadoop-2x-220-on-ubuntu.html?m=1

like image 612
Dean Chen Avatar asked Feb 21 '14 05:02

Dean Chen


People also ask

What does ssh localhost command do?

The command means that a connection is conducted to the own machine, to the current user. In general, that means a new login shell with (perhaps) new privileges, when the list of groups the user is member in has changed.

Can you SSH into localhost?

Open the terminal on the server machine. You can either search for “terminal” or press CTRL + ALT + T on your keyboard. Type in ssh localhost and hit enter.

What is the ssh command in Linux?

SSH Command in Linux The ssh command provides a secure encrypted connection between two hosts over an insecure network. This connection can also be used for terminal access, file transfers, and for tunneling other applications. Graphical X11 applications can also be run securely over SSH from a remote location.


1 Answers

Looks like a quick way of making sure that 'localhost' is added to the list of known hosts so that a script execution doesn't get interrupted by a question about trusting localhost's authenticity.

like image 86
Josh Liptzin Avatar answered Nov 15 '22 07:11

Josh Liptzin