Alcatel-Lucent OpenTouch Troubleshooting Manual page 22

Hide thumbs Also See for OpenTouch:
Table of Contents

Advertisement

Alcatel-Lucent OpenTouch R1.x Troubleshooting guide
Impact : backup from host, update OTBE to next OT version
4.2.9.1 How to repair the ssh
Create a bat file with the following content :
set install_dir=C:\"Program Files (x86)"\ICW
cd %install_dir%\etc
IF EXIST group.pre400 (
rename group.pre400 group
)
IF EXIST passwd.pre400 (
rename passwd.pre400 passwd
)
IF EXIST sshd_config.pre400 (
rename sshd_config.pre400 sshd_config
)
REM copy ssh file configuration
copy c:\temp\postinstall\copssh\generated\sshd_config %install_dir%\etc
REM restart open ssh service
%install_dir%\bin\copsshadm.exe --command stopservice
%install_dir%\bin\copsshadm.exe --command startservice
REM recreate user if not find
cd %install_dir%\bin
copsshadm.exe --command listactiveusers | grep %USERNAME%
if %errorlevel% gtr 0 (
echo "recreate %USERNAME%"
copsshadm.exe --command activateuser --user %USERNAME% --shell /bin/bash --passphrase "I am the ice
administrator"
)
REM recreate environment variable file
cd %install_dir%\home\%USERNAME%\.ssh
set > environment
REM copy RSA public key
copy /Y A:\authorized_keys %install_dir%\home\%USERNAME%\.ssh
REM open port 22
netsh advfirewall firewall show rule "Open port 22"
if %errorlevel% gtr 0 (
netsh advfirewall firewall add rule name="Open port 22" dir=in action=allow protocol=TCP localport=22
)
cd C:\
4.2.9.2 "ssh: connect to host @IP port 22: No route to host"
Management VM is not started or its network is not correctly defined.
4.2.9.3 "ssh: connect to host@IP port 22: Connection refused"
Check in the VM if the service "Openssh SSHD" is started (using services.msc).
• If the service is started, check the rules for port 22 in the firewall.
• If it's not, verify the config files in C:\Program Files (x86)\ICW\etc. sshd_config must be the same as
C:\temp\postinstall\copssh\generated\sshd_config.
4.2.9.4 "ice@IP's password:"
A password is requested, the public key is not correct.
• check if the account ice (known in windows and on host) is created :
Under C:\Program Files (x86)\ICW\home you must have a folder ice
if it's not the case, you must declare the account ice using the command
C:\Program Files (x86)\ICW\bin\copsshadm -c activateuser -u ice --shell /bin/bash --passphrase "I am the ice
administrator"
TG0064
22/182
Ed.15 / June 2013

Advertisement

Table of Contents
loading

Table of Contents