ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I think you need to do some serious background reading, then maybe come back with questions afterwards.
Here is a very good online book/manual: http://rute.2038bug.com/index.html.gz
To identify 'system2', use either the dotted-decimal IP (eg 123.12.34.56), or an IP name that can be resolved by your local nameserver, or is resolved in the /etc/hosts file on system1.
Now, here is the kicker; you will require a password to log in to system2, unless you have set up shared public keys. I know this will be troubling for you, but get over it.
Note that OP didn't specify operating systems. If *nix, then SSH is the way to go. If Windows, then IMO SSH is still the way to go but first cygwin needs to be installed on the Windows machine and the sshd needs to be configured.
On windows you will have to install the cygwin package which will give you access to a lot of unix commands, and will enable you to run the sshd daemon, which will let you ssh to your windows computer.
On windows you will have to install the cygwin package which will give you access to a lot of unix commands, and will enable you to run the sshd daemon, which will let you ssh to your windows computer.
ok thank you.
is this command (ssh ...) works for all linux systems that is
private and public ipaddress..(all IP's)
You have to have an ssh server running on the machine you are trying to connect to. It's a client-server relationship. The client in this case is the ssh program you are trying to run on your local machine (the one you are typing into). The server is the ssh server program that you must have running on the remote machine (the one you are trying to access over the LAN). Many distrobutions of linux, like slackware and fedora, come with the ssh server already installed and configured. Other distros like Ubuntu require you to download and install the ssh server, sometimes referred to as openssh. I don't know about setting up an ssh server in windows, does anyone else?
Once you have the ssh client and server setup, and you have accounts on both systems it's pretty easy. If I have accounts sidney@soltan1 and sidney@soltan2, then in a terminal on soltan1 I type:
Quote:
ssh soltan2
By default, ssh looks for an account with the same username you are using, so the above is equivalent to:
Quote:
ssh sidney@soltan2
If I had accounts sidney@soltan1 and sidney2@soltan2 then I would have to use:
Quote:
ssh sidney2@soltan2
And it would prompt me for the password for sidney2@soltan2.
On windows you will have to install the cygwin package which will give you access to a lot of unix commands, and will enable you to run the sshd daemon, which will let you ssh to your windows computer.
hi
i installed "New Cygwin DLL 1.5.24-2 release" in windows
again am unable to ssh 192.xxx.x.xxx
from linux to windows
is it possible?
I don't know about setting up an ssh server in windows, does anyone else?
I have done it using OpenSSH and Cygwin. It is a bit of a pain, and there is a script you need to make it a Windows service, but when it is configured it works just fine. I don't have that info right in front of me, but if/when OP gets to the point where he's ready for that info, I can get him through it.
Right now, though, it looks to me like he has a LOT to learn before he'll be doing that.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.