How to enable ssh access on Vyatta router

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.

$ configure
[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]
$ commit
[This command reloads Vyatta configuration with ssh access enabled]
$ save
[This command saves the updated configuration permanently]
$ exit

If you would like to change SSH port number to something else, as a security precaution, you can use the following command.

$ set service ssh port 666

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 is the IP address of Vyatta router's LAN interface.

$ set service ssh listen-address

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.

Support Xmodulo

Did you find this tutorial helpful? Then please be generous and support Xmodulo!

The following two tabs change content below.
Dan Nanni is the founder and also a regular contributor of He is a Linux/FOSS enthusiast who loves to get his hands dirty with his Linux box. He likes to procrastinate when he is supposed to be busy and productive. When he is otherwise free, he likes to watch movies and shop for the coolest gadgets.

Leave a comment

Your email address will not be published. Required fields are marked *