LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Remote config/setup a distant PC (https://www.linuxquestions.org/questions/linux-networking-3/remote-config-setup-a-distant-pc-109761/)

satimis 10-28-2003 11:04 PM

Remote config/setup a distant PC
 
Hi all folks,

Can I use SSH remote-config/setup a distant PC, either server or workstation, provided it has been connected to Internet and I have permission to do so? Whether the remote PC has to run SSH.

If its IP is aaa.bbb.ccc.ddd then can I issue

$ ssh -X remotePChostname@aaa.bbb.ccc.ddd

to make connection

If rebooting distant PC becomes neccessary after configuration whether I need to reconnect it to Internet manually at distant. OR is there a solution without assistance at distant.

Any pointer would be appreciated.

Any other suggestion on application/software?

Thanks in advance.

B.R.
satimis

gundelgauk 10-29-2003 02:40 AM

Greetings!


Yes, you can admin/configure a system remotely via ssh but I guess you'd have to login as root to do any configuration work. You have to provide the username that you want to login with rather than the hostname, like this:
ssh -X username@aaa.bbb.ccc.ddd
or
ssh -X -l username aaa.bbb.ccc.ddd

As for rebooting, you need to configure the system to run sshd after a reboot or you won't be able to log in again. Also you need the box to connect to the internet via dial on demand if it uses a dialup connection. And finally take care that your firewall rules upon a fresh reboot permit incoming ssh connections.


Good luck!

satimis 10-29-2003 05:44 AM

Quote:

Originally posted by gundelgauk
Greetings!

Yes, you can admin/configure a system remotely via ssh but I guess you'd have to login as root to do any configuration work. You have to provide the username that you want to login with rather than the hostname, like this:
ssh -X username@aaa.bbb.ccc.ddd
or
ssh -X -l username aaa.bbb.ccc.ddd

As for rebooting, you need to configure the system to run sshd after a reboot or you won't be able to log in again. Also you need the box to connect to the internet via dial on demand if it uses a dialup connection. And finally take care that your firewall rules upon a fresh reboot permit incoming ssh connections.

Good luck!

Hi,

Thanks for your advice. Please confirm/advise following points

1) I have to add new user (authorized person) on the distant PC which, I suppose, has to be done manually by an assistant on that location before Admin/config started

2) How to config /etc/ssh/sshd_config on the distant PC so that on reboot it will login automatically connecting Internet
a) in case of broadband
b) in case of dialup

3) About Iptables
How to config it to allow entering of an authorized person not open to Internet.

Thanks in advance.

B.R.
satimis


All times are GMT -5. The time now is 02:39 PM.