cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2318
Views
0
Helpful
3
Replies

Cisco modeling labs 1.2 linux server password

ringline910
Level 1
Level 1

CML 1.2.

I add a server (lxc-ssd).

after simulate,  I try to ssh to it's management port 

guest@mgmt-59ZY9s$ ssh cisco@10.255.0.29
Warning: Permanently added '10.255.0.29' (RSA) to the list of known hosts.
cisco@10.255.0.29's password: cisco

Permission denied, please try again.

I type the password  "cisco" , but fail.

1. What is the correct password ?

2. How to configure the Linux server ip address ?    modify /etc/network/interfaces ?

Best Regards,

Michael

3 Replies 3

ringline910
Level 1
Level 1

Hi all,

I find the solution.

It needs  "build initial configurations"

The Linux server will have default 

username : cisco

password : cisco.

It will generate configuration:

#cloud-config
bootcmd:
- ln -s -t /etc/rc.d /etc/rc.local
hostname: lxc-sshd-1
manage_etc_hosts: true
runcmd:
- systemctl start rc-local
- sed -i '/^\s*PasswordAuthentication\s\+no/d' /etc/ssh/sshd_config
- echo "UseDNS no" >> /etc/ssh/sshd_config
- service ssh restart
- service sshd restart
users:
- default
- gecos: User configured by VIRL Configuration Engine 0.21.7
lock-passwd: false
name: cisco
plain-text-passwd: cisco
shell: /bin/bash
ssh-authorized-keys:
- VIRL-USER-SSH-PUBLIC-KEY
sudo: ALL=(ALL) ALL
write_files:
- path: /etc/systemd/system/dhclient@.service
content: |
[Unit]
Description=Run dhclient on %i interface
After=network.target
[Service]
Type=oneshot
ExecStart=/sbin/dhclient %i -pf /var/run/dhclient.%i.pid -lf /var/lib/dhclient/dhclient.%i.lease
RemainAfterExit=yes
owner: root:root
permissions: '0644'
- path: /etc/rc.local
owner: root:root
permissions: '0755'
content: |-
#!/bin/sh
ifconfig eth1 up 192.168.11.1 netmask 255.255.255.0
route add -net 0.0.0.0/0 gw 192.168.11.254 dev eth1
exit 0

Lee Shouse
Level 1
Level 1

You won't be able to log in to your server unless you run autonetkit for that server prior to starting your simulation.