cancel
Showing results for 
Search instead for 
Did you mean: 

how to ssh from powershell to ruckus wireless AP (standalone)

stephan_van_der
New Contributor II

I can start an SSH session to an R300 using these commandlets:

PS C:\WINDOWS\system32> $ruckussession = New-SSHSession -ComputerName 192.168.5.2 -Credential $cred
PS C:\WINDOWS\system32> Invoke-SSHCommand -Index $ruckussession.SessionId -Command $commands

But whatever the $commands, this gives output:

Host       : 192.168.5.2
Output     : {, Please login: }
ExitStatus : 1

This seems to be the same thing as when logging on via putty: One has to login al thougt credentials are sent with starting the SSH session. How can I overcome this?

5 REPLIES 5

syamantakomer
Community Admin
Community Admin

Hi Stephen,

This is expected, because Ruckus AP CLI prompts below information when you try to SSH.

Login as

Please login

password

In "Login as" prompt, you can feed any dummy data, but actual login username is required on "Please login" prompt.

Refer the below login output from putty.

login as: admin

Please login: admin
password :
Copyright(C) 2018 Ruckus Wireless, Inc. All Rights Reserved.

** Ruckus T750 Multimedia Hotzone Wireless AP: xxxxxxxxxxx

rkscli:

Modify your login commands and add the context for "Login as", and it should work.


Syamantak Omer
Sr.Staff TSE | CWNA | CCNA | RCWA | RASZA | RICXI
RUCKUS Networks, CommScope!
Follow me on LinkedIn

@syamantak_omer thanks for your reply. 

I know how to log on interactively, e.g. via PuTTy. But via powershell SSH session, I cannot get it working. What do you mean exactly with: Modify your login commands and add the context for "Login as"?  How can I do this in the powershell script?

Regards,

Stephan van der Plas

This works:

#$cred = Get-Credential
$ruckussession = New-SSHSession -ComputerName 192.168.5.2 -Credential $cred
$sshshellstream = New-SSHShellStream -Index $ruckussession.SessionId
$sshshellstream.WriteLine('super')

$sshshellstream.WriteLine('password')

sleep 2

$sshshellstream.WriteLine('get station wlan10 list')
sleep 2

$sshshellstream.Read()

Thanks for your help. Now I can use this in my Domoticz system for presence detection.

Regards,

Stephan van der Plas

Hey there, I'm facing the same problem, but trying to connect via Python (Paramiko library) or even Putty-CLI -> where both don't work! When trying manually via putty session it works as described:

1.enter dummer or any USERNAME

2. enter real USERNAME

3 enter PASSWORD

 

Bun intention is to automate it.

Many thanks for any advise how to solve this

Regards,

Mario