|
In today's tutorial how to configure openssh, for the specific installation, service configuration and subsequent implementation of a chat through the terminal.
The software for the occurrence are openssh and irssi. As a first step, it is necessary, perhaps through your distribution's repository to install them. In my case, using Archlinux, I will give the command pacman -S openssh or yaourt -S openssh.
This done, and if you did not run smoothly, we pass to the configuration. The files are mostly two, and are both located in /etc/ssh/. First with our text editor, edit sshd_config. We will find several options, those that concern us are listed below:
N.B.: to enable the party indicated above, it is necessary, if it is present, remove the pound sign (#) to enable everything.
Save is now edit the file ssh_config this also in /etc/ssh/:
N.B.: Same as before, then changed everything according to what mentioned above, alert to the pound (#) to enable the options for the proper functioning of the program.
Now we just have to restart the daemon, in my case /etc/rc.d/sshd restart. Who should use distributions such as Debian, Ubuntu, the command to activate, stopping the service will restart and /etc/init.d/sshd start | stop | restart.

The base string to connect is: ssh username@IP otherwise ssh indirizzo IP -l username or even ssh IP
To view the logs we cat /var/log/auth.log | grep ssh but if they do use a fairly steady is better to use a text editor rather than the cat that will simply display the requested file.
Now with a little foresight, we must be configured to wait the address of the LAN IP to enable the listening port and then connect remotely to our car. It 'an important thing to do, because without it, we will not be able to fully exploit the potential of the program and our needs.
Just give a ifconfig, you'll see something like the figure below:

In my case the issue is the wireless interface wlan0 with IP address 192.168.1.100. If you use the network cable to test the value corresponding to the field indicated on eth0. Now we just have to get inside the router configuration and section virtual server IP address set as that seen shortly before (192.168.1.100) as the TCP protocol and port as the number 22. Save the settings and log out.
Now we spend maybe the most interesting, or remotely connect to our car. As mentioned a few lines above, there are two strings to connect remotely via ssh to our car. There propose a third, but it is not a string, but a Windows software that allows us the same thing. Also because, as often as often happens, one is to use more and more computer systems during the course of a day. The program in question is called Putty.

N.B.: Remember that the section Host Name should be inserted the public IP address and not the LAN. To find a reference site can be www.mioip.it manual or if you can see it in the settings of the router.
If all goes well we will be in front of a terminal that will ask your username and password (our login credentials so to speak). Now to chat, write irssi. Et voilà:

In the image above irssi running connected to an IRC server.
This is a simple guide on how not to lose much time in the ssh configuration, see the command man ssh for a configuration to suit your needs. Read 0 Comments... >> |