How does command prompt connect to Internet? (In Window) - window

From command prompt, if we try,
git clone https://someServer.com/someRepo
How does it connect to https (ssl), hit the server and return the response? Similar question holds true for linux with pip install.

You can use ftp in cmd (type ftp and hit enter):
ftp>open mozilla.org
If you mean getting a response, type:
ping whateversyte.com

Related

How to create a ftp server using cmd in my windows computer

Can somebody tell me how to create an ftp server using only cmd and also how to configure it using only cmd
The command prompt ftp in windows is a client ftp. You can't use it like a ftp server. You need an ftp server software. You can probably find one for free online.

Cvs ext method "Connection refused"

I'm using Windows 7 and cygwin. I want to connect to our CVS repository with the following command:
cvs -d :ext:my_username#my_ip:/my_repo_path/ checkout my-parent
Unfortunately I'm getting this error:
my_ip:514: Connection refused
How can I provide a password so that I'm able to connect to the server?
my_ip:514: Connection refused
The cvs "ext" method connects using rsh (remote shell) by default. Port 514 is the standard rsh port. The error "Connection refused" normally means that the remote host isn't accepting connections on the requested port.
In other words, you tried to connect to the remote host using rsh, not ssh. But the remote server doesn't accept rsh sessions. This isn't very surprising, because rsh is a very insecure protocol and it's not widely used any more.
To make CVS use ssh instead of rsh, you need to set the CVS_RSH environment variable:
$ CVS_RSH=ssh; export CVS_RSH
On unix or linux, you'd normally add this line to your .bashrc, .profile, or one of your other shell startup files so that it's set automatically when you log in. On Windows, this http://superuser.com answer describes how to set environment variables. If you're on Windows, you may also need to install an ssh program, because Windows doesn't come with one.
Once cvs is set to use ssh, ssh will prompt you to type a password if it needs one.
The book Open Source Development with CVS has a section about the different cvs repository access methods, including how to set the "ext" method to use ssh.

How do you set up an FTP server on a computer?

Furthermore, how do you check a server to see if an ftp server is running on it?
Consider the following steps
Press Win+R
type inetmgr and press enter
it opens IIS
expand the list and if you find "FTP Sites" folder available then FTP is installed in your system
to check if ftp server is running or not expand "FTP sites" folder
u will find a sub directory "Default FTP Site".
right click on that subdirectory and you will find 'start','stop' and 'pause' options available there
if start option is disabled then ftp server is running on your system
you can also start it if not already started
To install FTP. just go to Add/Remove windows component and re install IIS with FTP services and you r done
to check ftp if ftp server is running or not on a remote computer
open your cmd and type ftp and press enter. then use command "open 172.25.65.788" or u can use your own ip address. if it asks for username and password that means server is running.
Just open your favorite ftp client, specify server url and click connect. If connection successful then ftp is installed and started on a server.
You can do even from windows console, just type something like (open Run dialog by pressing Win+R): cmd /K ftp {serverurl}

Set up tunnel for SVN (using Cornerstone/Mac)

I've been using Tortoise to checkout/commit to the svn repository. It is set up to use Tortoiseplink as SSH client (D:\TortoiseSVN\bin\TortoisePlink.exe -l foo -pw bar). I have now moved to a Mac (using Cornerstone) but I can't get the same sort of setup. Whatever I do, I can't get Cornerstone to connect to the repo.
Do I need to set up an ssh tunnel? And how do I do that on a Mac?
Update: screenshot of the settings needed
What you have looks correct - the only thing I can think of is that your SSH connection is not working for some reason. Have you tried just doing an SSH to the server hosting the repository? To do this, open Terminal and type:
$ ssh hostgator_username#gator123.hostgator.com
If you are prompted for a password and you can log into the machine then that is a good start - if not that suggests that something is fishy with your network setup.

Getting "Server refused to allocate pty" error when trying to connect to Bitbucket via SSH on Windows

I'm trying to hook up Mercurial to Bitbucket on a PC and it's being really tough. I followed the instructions here:
http://www.codza.com/mercurial-with-ssh-setup-on-windows
and I'm running pageant set to my private key. I typed this at the command line:
plink -v hg#bitbucket.org and I get the following output:
C:\mypath>plink -v hg#bitbucket.org
"skipped for briefness"
Access granted
Opened channel for session
Server refused to allocate pty
Started a shell/command
conq: invalid command syntax
Server sent command exit status 0
Disconnected: All channels closed
My friend got the same error when he tried it on his PC. Can you help explain what the problem is or how to debug?
Running plink ssh://hg#bitbucket.org gives Using username ssh://hg and Disconnected: No supported authentication methods available.
Thanks for your help,
Kevin
You cannot connect to Bitbucket like that and get a login shell -- their backend process (called conq) will only accept Mercurial commands. With TortoiseHg, you don't have to do anything special -- so hg push ssh://hg#bitbucket.org/... should just work out of the box.
Using HTTPS is generally a nicer option for Bitbucket and as we discussed on IRC, there are plenty of ways to cache the passwords.

Resources