LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-28-2003, 11:04 PM   #1
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,687

Rep: Reputation: 55
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
 
Old 10-29-2003, 02:40 AM   #2
gundelgauk
Member
 
Registered: Jul 2003
Distribution: Gentoo
Posts: 168

Rep: Reputation: 30
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!
 
Old 10-29-2003, 05:44 AM   #3
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,687

Original Poster
Rep: Reputation: 55
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
NFS problem - connection refused from distant host Agrouf Linux - Networking 4 10-17-2005 02:24 PM
remote firewall setup debtman7 Linux - Security 1 08-03-2005 03:22 PM
How to setup a remote desktop njschroe SUSE / openSUSE 1 05-03-2005 09:23 PM
distant connection to mac os 9 [newbie] aseedb Linux - Networking 2 11-28-2003 07:54 AM
distant connection to mac os 9 [newbie] aseedb Linux - Newbie 0 11-27-2003 06:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:23 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration