01-08-2017 11:31 PM
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
01-09-2017 12:15 AM
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
01-04-2018 05:21 PM
You won't be able to log in to your server unless you run autonetkit for that server prior to starting your simulation.
02-20-2021 03:16 AM
hey, i have a solution for you here:
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide