A fresh installation of Vyatta does not have SSH access enabled by default. Thus, if you would like to SSH to a Vyatta router, you first need to enable SSH service. In order to enable SSH access on Vyatta router, enter the following commands via its console.
[You are now entering the Vyatta's CLI.]
$ set service ssh
[This command enables ssh service with default port 22]
$ set service ssh allow-root
[This command allows the root user to log in via SSH. Without this, only non-root users will be able to SSH to the router]
[This command reloads Vyatta configuration with ssh access enabled]
[This command saves the updated configuration permanently]
If you would like to change SSH port number to something else, as a security precaution, you can use the following command.
If you want to enable SSH service on an internal interface, so that you can SSH to Vyatta router from within internal networks only, you can use the following command. I assume that 192.168.10.1 is the IP address of Vyatta router's LAN interface.
Subscribe to Xmodulo
Do you want to receive Linux FAQs, detailed tutorials and tips published at Xmodulo? Enter your email address below, and we will deliver our Linux posts straight to your email box, for free. Delivery powered by Google Feedburner.
Did you find this tutorial helpful? Then please be generous and support Xmodulo!
Latest posts by Dan Nanni (see all)
- How to back up a WordPress website to remote cloud storage from the Linux command line - November 24, 2015
- How to access Dropbox from the command line in Linux - November 22, 2015
- How to send email notifications using Gmail SMTP server on Linux - November 9, 2015