win-7
i set my laptop to be access point but windows force me to use WPA2 as authentication for the user connected .
i want to change the authentication level to OPEN instead WPA2 how i can do it ?
i used the following commands :
Open cmd window as administrator and typed the following commands :
netsh wlan set profileorder name="profile1" interface="Wireless Network Connection 4"
netsh wlan set hostednetwork mode=allow ssid=v2v_AP key=alvarion keyUsage=persistent
netsh wlan start hostednetwork
Related
I'm trying to use ssh to connect vscode to a HPC. Unfortunately to connect I need to use a jump host which prompts for the forward connection.
ssh config
Host <JUMP_HOST_IP>
HostName <JUMP_HOST_IP>
User MYUSER
ControlMaster auto
ControlPath ~/.ssh/%r#%h:%p
Host <TARGET_IP>
Hostname <TARGET_IP>
ProxyJump <JUMP_HOST_IP>
User MYUSER
Attempting to connect then displays the prompt Enter host or service name: in the ssh output terminal but as vscode attempts to install I just get the following error: Enter host or service name: Bad format host name
I have a SIM-Card in my Laptop and I want to automate the connection. I have removed the PIN from the SIM-Card. I can disconnect with
netsh mbn disconnect interface="Cellular"
This works. If I try to connect with
netsh mbn connect interface="Cellular"
I get an error, that one or more Parameters are wrong for the command.
I'm using a Windows 10 Machine.
As suggested by B--rian I ended up using
netsh mbn connect interface="Cellular" connmode=name name="{...}"
I had to disable the PIN for this to work.
I understand the command to show the Windows XP firewall status is:
netsh firewall show opmode
Which outputs:
To disable firewall type:
netsh firewall set opmode mode=disable profile=all
Which outputs:
But I cannot find the command to disable the Local Area Connection.
How can I do this?
I cannot find the command to disable "Local Area Connection"
You need to use the interface option of netsh.
To disable:
netsh interface set interface "Local Area Connection" admin=disable
To enable:
netsh interface set interface "Local Area Connection" admin=enable
Notes:
Replace Local Area Connection with the interface names of your adapter.
Use netsh interface show interface to get the interface name.
Further Reading
An A-Z Index of the Windows CMD command line - An excellent reference for all things Windows cmd line related.
netsh - Configure Network Interfaces, Windows Firewall, Routing & remote access.
Netsh commands for Interface IP
Netsh Commands for Wireless Local Area Network (WLAN)
I received this error when trying to establish an SSH tunnel using pgAdmin3
I specified the private key location on my local machine (had to
enable hidden files on my Mac finder to see it),
entered the tunnel
host (used public host IP) and
checked the 'Identity file' option.
I don't have a password set on my key.
Received this error:
Authentication by identify file failed with error code -18
What am I doing wrong (or what do I need to do differently)?
I was getting this continously on windows (VM).
So I decided pgAdmin's built in ssh tunnel was no good and just used gSTM (On linux).
Forwarding the port from the remote server 5432 to local host 5555 worked.
Then I could just use pgAdmin III on Linux to connect.
You could probably use command line like this if you don't want to use a graphical tool such as gSTM.
ssh -fNg -L 5555:localhost:5432 {your_username}#{yourdomain.com}
Source: http://dustindavis.me/ssh-tunnel-in-pgadmin3-for-postgresql/
You can also use putty on windows to forward ports.
See Connection | SSH | Tunnels menu in the PuTTY Configuration.
http://www.akadia.com/services/ssh_putty.html
Then you can access it.
Of course be very carefull messing about in a remote database.
It is a good idea to label them a red or orange colour in pgAdmin to easily identify the ones that are not on your local network.
I am trying to SSH into my wife's Mac from my Mac. Her computer is connected to to her iPhone Wi-Fi hotspot. My SSH request times out every time.
I had her go to Systemprefs → Sharing, then check remote login and tell me the address to SSH.
I had her turn off her firewall under Systemprefs → Security as well.
Is this a firewall issue? Am I missing something simple?
So this a classic SSH/Connect behind a router or a private network.
In your case since it is a iPhone tethering which is a least configurable router, where you can't achieve what you want.
Next option is connecting behind a private network
Mac ---> iPhone ---> Internet <--- Mac
Now this only work if your Mac is reachable from the other Mac
---------------------- ----------
↑ ↓ ⟶ ↑ ↓
Mac ---> iPhone ---> Internet <--- Mac
So below are the pre-conditions for this to work
Both Mac have SSH enabled
Your Mac has an IP Y.Y.Y.Y and is reachable by Mac behind the iPhone tethering
First the Mac behind iPhone will open a Reverse tunnel to your Mac using below
sudo ssh -R 4455:127.0.0.1:22 <yourmacuser>#Y.Y.Y.Y
Once this connection is made you can test on your Mac the port being available like below
$ telnet localhost 4455
Trying ::1...
Connected to localhost.
Escape character is '^]'.
SSH-2.0-OpenSSH_7.6
Once the tunnel is open you can then ssh back to the other Mac
$ ssh -p 4455 <othermacuser>#localhost
The public IP address in question is the iPhone's IP, not the hotspot client's IP. The cient IP is on a network like 172.20.10.1 and is unreachable via the public Internet.
Because the iPhone isn't configured to forward traffic to clients, to my knowledge you can't use the iPhone as a jump box using a standard iOS build.
Go to terminal on your Mac.
Type in:
ssh "username"#"ip address"
The username is the one that is your wife's computer login name and the ip address is the local address of your wife's computer.
It'll then prompt you to enter the password for access.