Fix the proxy command and hostname for opnfv vm in ssh config 37/52837/1
authorFatih Degirmenci <fdegir@gmail.com>
Wed, 28 Feb 2018 15:11:38 +0000 (15:11 +0000)
committerFatih Degirmenci <fdegir@gmail.com>
Wed, 28 Feb 2018 15:11:38 +0000 (15:11 +0000)
Change-Id: Ic036a4f5ef8b24b88154f9314957339d3954839a
Signed-off-by: Fatih Degirmenci <fdegir@gmail.com>
xci/scripts/vm/start-new-vm.sh

index 4f15f91..31c7337 100755 (executable)
@@ -288,10 +288,11 @@ Host *_xci_vm
 User devuser
 
 Host *_xci_vm_opnfv
+Hostname 192.168.122.2
 User root
 TCPKeepAlive yes
 StrictHostKeyChecking no
-ProxyCommand ssh -l devuser \$(echo %h | sed 's/_opnfv//') 'nc 192.168.122.2 %p'
+ProxyCommand ssh -l devuser -i ${BASE_PATH}/xci/scripts/vm/id_rsa_for_dib ${OS}_xci_vm -W %h:%p
 EOF
 
 # Final ssh command which will also test the configuration file