Issue connecting to CLI on storage device

You need to use the expect module.