Linux conect another Linux via SSH [closed] - linux

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
My laptop's OS is Linux, and I want to connect my remote server, its OS is Linux CentOS. You know, on Windows, you can use Putty, XShell etc to connect remote Linux Machine. And I wonder if there are some softwares just like Putty or Xshell that can connect remote Linux Server.I know on Linux, you can use ftp to connect remote Linux Server's file system, but I want to use remote Linux Server's terminal to run some programs.

ssh user#remoteserver
remoteserver : This is the hostname or the ip address you need to connect to.
user : The username you use to connect to that system.
Upon successful connection you shall see the prompts to guide to further.

In Linux you have SSH (openssh package usually or ssh-server or ssh) command ssh

Surprisngly, the tool you need is called ssh

Related

Remote File Transfer from Linux Machine to Windows Machine [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
I am looking to remotely transfer a file from my Linux machine to a Windows machine. I have done some research and it appears that scp is what I want to use to achieve this. However... all of the code that I'm seeing appears to be using cygwin (or similar) that is already installed on the windows machine, hardly "remote." My two systems are completely separate and have their own unique IP addresses.
Filezilla or WinSCP will do the job. It's required only to have SSH server running on your Linux machine, enabled SSH port (tcp/22 by default) in firewall and your Windows computer must be able to reach the Linux host - you can try ping <Linux-machine-IP> from your Windows computer to verify.
If you want something else, you could configure Samba or probably WebDAV (httpd.apache.org/docs/2.4/mod/mod_dav.html), which allow you to mount your Linux directories as drives in Windows without additional tools. For example, your linux home /home/user can be mounted as Y: drive in Windows.
If you already have an ssh server on your Linux machine, I suggest using Filezilla, which comes with a GUI.
You just want to install the client on windows, don't bother with the server, a classic ssh server does the job.

scp-ing while ssh'd into remote machine? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
My desire:
ssh into a remote machine, take a peak around, and then copy a file from from that remote machine into my local machine using a Linux command.
My frustration:
From what I've seen in the documentation, I can't be ssh'd while using the scp command. I must simply be a user on my local machine and specify the the connection info and the file location (ie. scp user#remotehost:copyFrom.txt /myDir/copyHere.txt).
I could alternatively use SFTP:
$ SFTP user#remotehost
$ $ get remoteFile.txt /myLocalDir/localFile.txt
but SFTP isn't quite as fast as SSH.
Is it possible to use scp while already sshd into the remote machine?
No, it is not possible, if you don't have public IP and sshd server running on your workstation (if you have, there is nothing easier than to run scp file localmachine: from remote session).
The speed is not significant. It can be one or two percent on large files, but using sftp, you will gain much more, because you do not have to initiate ssh the connection for each scp command, but only once and every get command is "cheaper". For normal files over normal network you will not notice difference.

Remote desktop for Linux [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I come from a Windows background and have been using Remote Desktop to view a remote server's desktop on my local machine. Remote desktop is probably the most popular tool for doing this because it's already part of the OS. Is there a similar tool for Windows but for accessing a Linux machine instead?
Try VNC. It works on Mac and Linux. You need to be running the server portion on the Linux host.
Take a look at xrdp. According to project description you can even use your native Windows client to access Linux desktop:
The goal of this project is to provide a fully functional Linux
terminal server, capable of accepting connections from rdesktop,
freerdp, and Microsoft's own terminal server / remote desktop clients.
try TeamViewer you can download it from
http://www.teamviewer.com/en/download/linux.aspx

Command to remotely restart another computer on same network, In Windows and Linux? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
What command do I use to remotely restart another computer on our network, through command prompt with windows? And what is this same command in Linux terminal?
Google should sort u out.
Here's some possibilities assuming you wish to reboot a linux machine (either local or remote):
Local
(as root)
/sbin/shutdown -r now
or
$ sudo reboot
Remote
You will definitely need to get access to the remote machine before you can reboot it. So, the best bet is grabbing ssh or putty (for windows).
With ssh, you can reboot a remote linux machine like this:
$ ssh root#remote-server.com /sbin/reboot
or
$ ssh root#remote-server.com /sbin/shutdown -r now
Enjoy!
More ideas discussed here

how to copy files on windows host from linux host [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
here is a window host ip is 192.168.8.1
i can telnet in this host from linux host 192.168.2.1 and name/pwd is test test
i want a shell script to login in window host(192.168.8.1),and copy d:/log to f:/log.
from linux host ,how to write this linux script .
I hava already tried to think,thank you for you to answer it.
You can install an ssh server on windows (for example OpenSSH)
Here a link of a tutorial: http://www.worldgoneweb.com/2011/installing-openssh-on-windows-7/
Then you can use the scp command from linux machine to copy your files. http://linux.die.net/man/1/scp
I would first ask if you have any other access to the windows host? Does it have a ftp server?
Is it or can it share drives? Assuming you need to transfer the file via the telnet session stream you can check out Kermit. It was originally written to work on serial lines, but can also work with telnet sessions. A version of kermit needs to be installed on both windows and linux. It works with binary files. It also changes line endings if needed. Another possibility is zmodem.
Old versions of kermit are public domain. Should be Ok. Newer versions are not. See http://www.omen.com/zmdmev.html

Resources