You are not logged in.

#1 2006-12-22 09:59:44

rasat
Forum Fellow
From: Finland, working in Romania
Registered: 2002-12-27
Posts: 2,293
Website

Remote access with ssh

In this subject matter I am a newbie, reply accordingly.

How to access a remote computer via Internet. Not sharing files but logging into a remote machine and for  executing  commands  on  a  remote  machine. A detail description how to setup with ssh or other, if possible.


Markku

Offline

#2 2006-12-22 10:12:30

STiAT
Member
From: Vienna, Austria
Registered: 2004-12-23
Posts: 606

Re: Remote access with ssh

The arch wiki should help you out:
http://wiki.archlinux.org/index.php/Using_SSHD_and_SSH

Another question i have is: is it about automatically doing commands on a remote machine (script) or personally logging on and entering commands?

For a script you'll need some additional configuration.

General: Login on a remote machine:
ssh user@host.com
Password: mypasswd
then you should be logged in to the remote machine, with the possibility to execute commands within the permissions the user has.


Ability is nothing without opportunity.

Offline

#3 2006-12-22 16:49:58

rasat
Forum Fellow
From: Finland, working in Romania
Registered: 2002-12-27
Posts: 2,293
Website

Re: Remote access with ssh

STiAT wrote:

ssh user@host.com
Password: mypasswd

Example, to login with an username "user@host.com", how is the configure at the remote side? And what about IP address?


Markku

Offline

#4 2006-12-22 17:06:59

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Remote access with ssh

The remote side needs to be running sshd, as described in the wiki. If you don't have a valid domain name, you can use the IP address e.g. user@123.234.123.234. If you have a valid domain name and a dynamic IP address, use one of the many dynamic DNS services.

If either client or host are directly exposed to the internet, I'd highly recommend using ssh keys - actually, I'd highly recommend them in any context. At the risk of stating the obvious, a firewall would be good too.

Offline

#5 2006-12-22 17:27:40

rasat
Forum Fellow
From: Finland, working in Romania
Registered: 2002-12-27
Posts: 2,293
Website

Re: Remote access with ssh

If I understand correctly, in remote...
/etc/rc.conf

HOSTNAME="host.com"

eth0="eth0 23.234.123.234 netmask 255.255.255.0 broadcast 192.168.0.255"

/etc/hosts

23.234.123.234  host.com.host.comdomain   host.com 

Markku

Offline

#6 2006-12-22 21:12:49

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Remote access with ssh

Yeah - but that's network basics, regardless of what application(s) you're planning to use.

Offline

#7 2006-12-28 02:08:45

kamagurka
Member
From: Munich, Germany
Registered: 2006-02-20
Posts: 150
Website

Re: Remote access with ssh

I'm having a kind of weird problem: I've set up everything like it said in the wiki (and pretty much like I did on my old Gentoo install), but when I try to ssh into localhost I get

ssh_exchange_identification: Connection closed by remote host

I always roll 20s on my disbelieve checks.
You better believe it.

Offline

#8 2006-12-28 02:17:25

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Re: Remote access with ssh

add...

sshd: ALL

to /etc/hosts.allow


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#9 2006-12-28 02:56:27

kamagurka
Member
From: Munich, Germany
Registered: 2006-02-20
Posts: 150
Website

Re: Remote access with ssh

Oh, thanks. I had the portnumber sshd was running under in there, thought that would be enough.


I always roll 20s on my disbelieve checks.
You better believe it.

Offline

#10 2006-12-28 08:53:01

STiAT
Member
From: Vienna, Austria
Registered: 2004-12-23
Posts: 606

Re: Remote access with ssh

i like cactus display pic yikes


Ability is nothing without opportunity.

Offline

#11 2006-12-28 12:54:18

delphinen
Member
Registered: 2006-10-02
Posts: 67

Re: Remote access with ssh

STiAT wrote:

i like cactus display pic yikes

yeah me too tongue

Offline

Board footer

Powered by FluxBB