Skip to content

Commit bedddcc

Browse files
committed
Minor fixes
1 parent 6d75f0b commit bedddcc

1 file changed

Lines changed: 1 addition & 37 deletions

File tree

00-fundamentos-linux/03-network-connectivity/ssh/02-conexion-remota.md

Lines changed: 1 addition & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -8,43 +8,7 @@ Para establecer una conexión SSH al servidor nos hará falta al menos:
88

99
## Prerrequisitos
1010

11-
Para esta demo se han aprovisionado dos máquinas virtuales mediante la el fichero de configuración de Vagrant:
12-
13-
```ruby
14-
# encoding: utf-8
15-
# -*- mode: ruby -*-
16-
# vi: set ft=ruby :
17-
18-
Vagrant.configure(2) do |config|
19-
config.vm.define "ubuntu-server" do |server|
20-
server.vm.box = "bento/ubuntu-20.04"
21-
server.vm.hostname = "ubuntu-server"
22-
server.vm.network "private_network", ip: "192.168.33.10"
23-
server.vm.provider "virtualbox" do |vb|
24-
vb.customize [ 'modifyvm', :id, '--uartmode1', 'disconnected']
25-
vb.name = "ubuntu-server"
26-
vb.gui = true
27-
vb.memory = 2048
28-
end
29-
30-
config.vm.provision "shell", inline: <<-SHELL
31-
useradd -m -p $(openssl passwd -crypt user1) -s /bin/bash user1
32-
SHELL
33-
end
34-
35-
config.vm.define "ubuntu-client" do |client|
36-
client.vm.box = "bento/ubuntu-20.04"
37-
client.vm.hostname = "ubuntu-client"
38-
client.vm.network "private_network", ip: "192.168.33.20"
39-
client.vm.provider "virtualbox" do |vb|
40-
vb.customize [ 'modifyvm', :id, '--uartmode1', 'disconnected']
41-
vb.name = "ubuntu-client"
42-
vb.gui = true
43-
vb.memory = 2048
44-
end
45-
end
46-
end
47-
```
11+
Para esta demo se han aprovisionado dos máquinas virtuales utilizando el fichero de configuración de Vagrant.
4812

4913
Para inicializar las máquinas virtuales nos situaremos desde una terminal en el directorio donde tenemos el fichero `Vagrantfile` y ejecutaremos:
5014

0 commit comments

Comments
 (0)