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
I'm able to SSH into my network using my DDNS, which takes me into my NAS. However, I also have my Windows PC and my Linux PC on that network. I want to SSH into them from outside of the network, however my IP/DDNS takes me to the NAS, how can I specify which machine to SSH into, without being on a VPN.
I use
ssh -i /path/to/rsa/key user#ddns.com
or
ssh -i /path/to/rsa/key user#ip
I want to be able to differentiate between which machine I'm SSHing into, as their addresses are 192.168.1.103, 192.168.1.110, and 192.168.1.135 which is the NAS.
Any input would be much appreciated.
You may want to use tunneling, if you can connect to NAS via SSH.
Take a look at this article
Related
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
I've inherited a Linux server that had some ssh privileges setup on it to connect to other Linux servers. The thing is there is no documentation on where those privileges are stored and they are not setup consistently across all machines.
Is there a way to check what accounts and servers I can log into without a password on an existing machine?
As #lurker says, the permissions are maintained on the server. You need look through the /etc/ssh/ssh_known_hosts and ~/.ssh/known_hosts files on all your servers to find out which hosts can connect.
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've found lots of articles describing how to do passwordless ssh and I have got it up and running no problems.
What I can't find is information on how to best set this up for multiple machines?
If we have 100 servers that would all need to log into each other then I need to setup access to 99 other machines from all 100 machines. That 9,900 times I need to run the various commands. I could automate this but it still seams excessive to me.
Is there a simple way for example where all machines have the same public/private keys and then it just works?
Ideally I would like to simply copy files onto each server and have it work.
Yes it is possible.
1. Create a public and private key combination
2. Rename the file so that it does not interfere with the default keys on the machine
3. Copy these two files to all the host machines which you want to connect
4. use "$ ssh -i <path to the new public key> user_name#host_ip" command to login
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 need to copy a configuration file from one linux account to another account. Since I do not have the permission I couldn't scp. So, how to yang and put the entire file across the accounts? File has 100s of lines so, it is not possible to copy, paste by mouse. I'm using putty.
If you can use PuTTY then you can use scp - both use the SSH protocol and require a user login.
Since you are comfortable using PuTTY, try using PSCP, which implements the scp linux command with a GUI. Use the same credentials as you do for PuTTY.
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
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 have some big data on a computer A.
Is it possible to run a program on another computer B using this data (using ssh or something?).
Of course it is possible. There are endless possibilities for working with data on a remote computer. Assuming that NFS and Samba are not available a few ways you can use ssh:
fish scp sshfs or sftp.
e.g.
scp user#host:/wrong/places/* /proc/self/fd/1 | grep love