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 set up Apt caching server on Ubuntu or Debian - February 7, 2016
- How to monitor OpenFlow messages with packet sniffer - February 2, 2016
- How to search multiple pdf documents for words on Linux - January 13, 2016