You are not logged in.
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
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
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
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
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
Yeah - but that's network basics, regardless of what application(s) you're planning to use.
Offline
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
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
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
i like cactus display pic
Ability is nothing without opportunity.
Offline
i like cactus display pic
yeah me too
Offline