1. Install Openssh in win 7 VM.
2. Login from any server to the win 7 VM using ssh.
3. Use the command "netsh wlan show profile" to view all profiles
4. Use the command "netsh wlan connect E-DOT1X-REMOTE" to connect to an SSID
Below are the console logs:
###############################################################
[bgl-ads-843:/auto/tftp-sanity-testbed-infra]>ssh -l admin 10.104.99.166
****USAGE WARNING****
This is a private computer system. This computer system, including all
related equipment, networks, and network devices (specifically including
Internet access) are provided only for authorized use. This computer system
may be monitored for all lawful purposes, including to ensure that its use
is authorized, for management of the system, to facilitate protection against
unauthorized access, and to verify security procedures, survivability, and
operational security. Monitoring includes active attacks by authorized entities
to test or verify the security of this system. During monitoring, information
may be examined, recorded, copied and used for authorized purposes. All
information, including personal information, placed or sent over this system
may be monitored.
Use of this computer system, authorized or unauthorized, constitutes consent
to monitoring of this system. Unauthorized use may subject you to criminal
prosecution. Evidence of unauthorized use collected during monitoring may be
used for administrative, criminal, or other adverse action. Use of this system
constitutes consent to monitoring for these purposes.
admin@10.104.99.166's password:
Last login: Mon Jun 22 14:46:32 2015 from 64.103.223.251
Could not chdir to home directory /home/admin: No such file or directory
cygwin warning:
MS-DOS style path detected: C:/Windows/system32/cmd.exe
Preferred POSIX equivalent is: /cygdrive/c/Windows/system32/cmd.exe
CYGWIN environment variable option "nodosfilewarning" turns off this warning.
Consult the user's guide for more details about POSIX paths:
http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Program Files (x86)\OpenSSH>
C:\Program Files (x86)\OpenSSH>
C:\Program Files (x86)\OpenSSH>
C:\Program Files (x86)\OpenSSH>
C:\Program Files (x86)\OpenSSH>
C:\Program Files (x86)\OpenSSH>
C:\Program Files (x86)\OpenSSH>
C:\Program Files (x86)\OpenSSH>netsh wlan show profile
Profiles on interface Wireless Network Connection:
Group policy profiles (read only)
---------------------------------
<None>
User profiles
-------------
All User Profile : E-CWA-ISE
All User Profile : dot1x6
All User Profile : blizzard
All User Profile : E-WEBAUTH-LOCAL
All User Profile : E-GUEST
All User Profile : E-MAB-REMOTE
All User Profile : E-DOT1X-LDAP
All User Profile : E-DOT1X-LOCAL
All User Profile : E-DOT1X-REMOTE
All User Profile : AAA-SSID-2
All User Profile : AAA-EDISON
All User Profile : AAA-EDISON-NOVA
All User Profile : AAA-KATANA
All User Profile : gopen
C:\Program Files (x86)\OpenSSH>
C:\Program Files (x86)\OpenSSH>
C:\Program Files (x86)\OpenSSH>
C:\Program Files (x86)\OpenSSH>
C:\Program Files (x86)\OpenSSH>
C:\Program Files (x86)\OpenSSH>
C:\Program Files (x86)\OpenSSH>netsh wlan disconnect
Disconnection request was completed successfully for interface "Wireless Network Connection".
C:\Program Files (x86)\OpenSSH>
C:\Program Files (x86)\OpenSSH>
C' is not recognized as an internal or external command,
operable program or batch file.
C:\Program Files (x86)\OpenSSH>
C:\Program Files (x86)\OpenSSH>
C:\Program Files (x86)\OpenSSH>
C' is not recognized as an internal or external command,
operable program or batch file.
C:\Program Files (x86)\OpenSSH>
C:\Program Files (x86)\OpenSSH>
C:\Program Files (x86)\OpenSSH>
C:\Program Files (x86)\OpenSSH>netsh wlan connect E-DOT1X-REMOTE
Connection request was completed successfully.
C:\Program Files (x86)\OpenSSH>
C:\Program Files (x86)\OpenSSH>
C:\Program Files (x86)\OpenSSH>
C:\Program Files (x86)\OpenSSH>
C:\Program Files (x86)\OpenSSH>ping 20.20.20.2
Pinging 20.20.20.2 with 32 bytes of data:
Reply from 20.20.20.2: bytes=32 time=328ms TTL=255
Reply from 20.20.20.2: bytes=32 time=288ms TTL=255
Reply from 20.20.20.2: bytes=32 time=311ms TTL=255
Reply from 20.20.20.2: bytes=32 time=317ms TTL=255
Ping statistics for 20.20.20.2:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 288ms, Maximum = 328ms, Average = 311ms
C:\Program Files (x86)\OpenSSH>
C:\Program Files (x86)\OpenSSH>
C:\Program Files (x86)\OpenSSH>
2. Login from any server to the win 7 VM using ssh.
3. Use the command "netsh wlan show profile" to view all profiles
4. Use the command "netsh wlan connect E-DOT1X-REMOTE" to connect to an SSID
Below are the console logs:
###############################################################
[bgl-ads-843:/auto/tftp-sanity-testbed-infra]>ssh -l admin 10.104.99.166
****USAGE WARNING****
This is a private computer system. This computer system, including all
related equipment, networks, and network devices (specifically including
Internet access) are provided only for authorized use. This computer system
may be monitored for all lawful purposes, including to ensure that its use
is authorized, for management of the system, to facilitate protection against
unauthorized access, and to verify security procedures, survivability, and
operational security. Monitoring includes active attacks by authorized entities
to test or verify the security of this system. During monitoring, information
may be examined, recorded, copied and used for authorized purposes. All
information, including personal information, placed or sent over this system
may be monitored.
Use of this computer system, authorized or unauthorized, constitutes consent
to monitoring of this system. Unauthorized use may subject you to criminal
prosecution. Evidence of unauthorized use collected during monitoring may be
used for administrative, criminal, or other adverse action. Use of this system
constitutes consent to monitoring for these purposes.
admin@10.104.99.166's password:
Last login: Mon Jun 22 14:46:32 2015 from 64.103.223.251
Could not chdir to home directory /home/admin: No such file or directory
cygwin warning:
MS-DOS style path detected: C:/Windows/system32/cmd.exe
Preferred POSIX equivalent is: /cygdrive/c/Windows/system32/cmd.exe
CYGWIN environment variable option "nodosfilewarning" turns off this warning.
Consult the user's guide for more details about POSIX paths:
http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Program Files (x86)\OpenSSH>
C:\Program Files (x86)\OpenSSH>
C:\Program Files (x86)\OpenSSH>
C:\Program Files (x86)\OpenSSH>
C:\Program Files (x86)\OpenSSH>
C:\Program Files (x86)\OpenSSH>
C:\Program Files (x86)\OpenSSH>
C:\Program Files (x86)\OpenSSH>netsh wlan show profile
Profiles on interface Wireless Network Connection:
Group policy profiles (read only)
---------------------------------
<None>
User profiles
-------------
All User Profile : E-CWA-ISE
All User Profile : dot1x6
All User Profile : blizzard
All User Profile : E-WEBAUTH-LOCAL
All User Profile : E-GUEST
All User Profile : E-MAB-REMOTE
All User Profile : E-DOT1X-LDAP
All User Profile : E-DOT1X-LOCAL
All User Profile : E-DOT1X-REMOTE
All User Profile : AAA-SSID-2
All User Profile : AAA-EDISON
All User Profile : AAA-EDISON-NOVA
All User Profile : AAA-KATANA
All User Profile : gopen
C:\Program Files (x86)\OpenSSH>
C:\Program Files (x86)\OpenSSH>
C:\Program Files (x86)\OpenSSH>
C:\Program Files (x86)\OpenSSH>
C:\Program Files (x86)\OpenSSH>
C:\Program Files (x86)\OpenSSH>
C:\Program Files (x86)\OpenSSH>netsh wlan disconnect
Disconnection request was completed successfully for interface "Wireless Network Connection".
C:\Program Files (x86)\OpenSSH>
C:\Program Files (x86)\OpenSSH>
C' is not recognized as an internal or external command,
operable program or batch file.
C:\Program Files (x86)\OpenSSH>
C:\Program Files (x86)\OpenSSH>
C:\Program Files (x86)\OpenSSH>
C' is not recognized as an internal or external command,
operable program or batch file.
C:\Program Files (x86)\OpenSSH>
C:\Program Files (x86)\OpenSSH>
C:\Program Files (x86)\OpenSSH>
C:\Program Files (x86)\OpenSSH>netsh wlan connect E-DOT1X-REMOTE
Connection request was completed successfully.
C:\Program Files (x86)\OpenSSH>
C:\Program Files (x86)\OpenSSH>
C:\Program Files (x86)\OpenSSH>
C:\Program Files (x86)\OpenSSH>
C:\Program Files (x86)\OpenSSH>ping 20.20.20.2
Pinging 20.20.20.2 with 32 bytes of data:
Reply from 20.20.20.2: bytes=32 time=328ms TTL=255
Reply from 20.20.20.2: bytes=32 time=288ms TTL=255
Reply from 20.20.20.2: bytes=32 time=311ms TTL=255
Reply from 20.20.20.2: bytes=32 time=317ms TTL=255
Ping statistics for 20.20.20.2:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 288ms, Maximum = 328ms, Average = 311ms
C:\Program Files (x86)\OpenSSH>
C:\Program Files (x86)\OpenSSH>
C:\Program Files (x86)\OpenSSH>
No comments:
Post a Comment