Connecting VPN by Mac OS terminal - macos

I'm trying to install Firebase in to my Xcode by using mac os terminal command pod install (CocoaPods) , but it always has overtime, and connection breaks, so i cannot install it.
So here is a problem, i live in China, and i can't connect any Google services via terminal(GitHub also), but i have full access to all services using my VPN App.
Few solutions that i found - to create a custon VPN connection by command networksetup -connectpppoeservice "myVPN" but it doesnt work too, because i'm using VPN desktop App, and have no idea what data i need to type inside. Also i tried to networksetup -setv6off "Wi-Fi", but it didn't help too. I read people said that solution was just to turn off VPN, but in my case i have the same result with VPN ON/OFF.
So i have a question - how can i manage traffic from terminal through my VPN app to reach servers?
My MacOS version: 10.15.7 Catalina
errorMessage

i found how to solve my problem:
i opened a socket port from my VPN distributor
git config --global http.proxy 127.0.0.1:****

Related

UI on debian VPS on Ionos

I just get a VPS on Ionos, in which debian is running.
I use it to run selenium script with python but I would like to control what the script is doing when I get errors. So I would to install an UI and control it with vnc viewer.
Anyone knows if it possible ?
If yes, which ui I can install on my VPS ? and which vncserver package is the the best ?
Thank you
You can "apt install XFCE4" Desktop, then you have a UI.
You can access this desktop from Windows machines when you "apt install XRDP" and login via Remote Desktop.
Dont forget to open RDP Port 3389 in the firewall.

OSX cannot close server ports properly

I use local server enviroments on my mac. But every time I close the server by terminal process is still working so when I want to turn it on again I've got error that port I used previously is already occupied. So I need to find and kill that process with
netstat -vanp tcp | grep [PORT]
command which is very annoing and time-wasting. This is not related to any server technology since I've got the same problem using both Node.js and Ruby on Rails. It's something wrong with OSX. How can I fix that issue? I use OSX El Capitain version 10.11.6

SSH works from terminal but not from installed apps

a bit of a background to my issue:
I'm on a OSX El Capitan and I installed openssh7.1 using homebrew, placed all my keys in the ~/.ssh folder, and created ~/.ssh/config to identify each host and the key to be used to authenticate.
When using the terminal, I simply use $ ssh {hostname} and it connects me where I need to be. But when I try to connect from installed applications (like Sequel Pro, FileZilla, XCode) then I'm just unable to connect at all..
I don't even get any feedback from those applications! I'm feeling lost here, anyone has any piece of advice?
FYI, I symlinked /usr/local/bin/ssh to /usr/bin/ssh (and all other openssh binaries as well)

SVN Checkout over HTTP fails

I am trying to checkout code from webrtc.googlecode.com/svn/trunk. When I use HTTPS, everything is fine. When I try with HTTP, I get error E175002: could not connect to repository. My subversion preferences in ~/.subversion are empty. I am using Mac OS X Mountain Lion. I installed subversion using Brew. I used Wireshark to trace the traffic and noticed that when I say svn co http://webrtc.googlecode.com/src/trunk, the traffic is on port 443 and not on port 80. Something is forcing svn to use https instead of the specified http. I also disabled VPN to make sure that is not playing any tricks.
Any help would be greatly appreciated.
The problem was with Cisco AnyConnect VPN. I uninstalled it from the system and everything worked perfectly.

Accessing machine through wifi

I have one computer running ubuntu operating system. It is having a wifi router connected to it. I have other laptop which runs windows 7 operating system.
Is there a way to access the ubuntu machine from windows machine through wifi and vice versa ?
You can use TeamViewer in both windows and linux. It will give you full control of the remote machine but I'm not sure if you can do file transfering...
For file transferring, connecting from windows to linux I would use winSCP, which access files through ssh, so you would have to install an run sshd on your linux box. If you haven't sshd in your ubuntu box, install it by doing $ sudo apt-get install ssh. You can start ssh daemon in ubuntu 11.10 with the command $ sudo service ssh start. From linux (Ubuntu 11.10) to windows (w7), I have successfully got into w7 machines in my local network by exploring the Network section in the left bar of the nautilus explorer. Sometimes, for some folders it would ask me for credentials to log into the remote machine, and file transferring was as simple as doing copy and paste (Ctrl+c, Ctrl+v)
hope to be helpful! good luck!
VNC is good for remote work on both Windows and Linux. You'll need to install VNC on Windows but I believe it comes by default with Ubuntu. You need to configure one to be the server and then you can use a client from the other machine to connect to it and remotely control the server machine.
Here are some resources for VNC in Ubuntu: https://help.ubuntu.com/community/VNC
And I use TightVNC when I'm working on Windows (server and client included in the install).
Install XRDP on Ubuntu.
on windows then run msrtc -v
if over the internet , I say use
https://www.dwservice.net/en/download.html
free and lot better than teamviwer.

Resources