The write command
I understand how to use the write command but I'm unsure about how to set up the users. If my friend in inThe uk and I'm in the USA is it possible for me to write to him via the terminal with the write command or is it only for a local network within my office?
How do I set up the people who I want to talk with via the write command? I'm looking online but everyone seems to address the question presuming the users are already set up. |
talk, write and wall allow multiple users logged into the same computer at the same time to communicate with each other. If your friend in the UK logs into your computer via ssh, then write would allow you to type into your terminal window and have it show up in theirs.
|
do i have to list him as a user? im just unsure on how he logs in. what do i need to do on my end. do i make a group? whats the protocol here? how does he find my computer? whats the way to get the address?
|
'ssh' and 'rsh' allow one to login to remote system as local users are able to log in. And 'write' would posts messages there also.
'rsh' (Remote Shell) is secuirty risk. 'ssh' (Secure Shell) is secure. To enable access you have to install/setup 'OpenSSH'. |
thank you veerain but i dont think im being clear enough with my question. i do not understand what a remote host is? i simply have no idea what the terminolgy is.do i need an account on a remote server? i just dont get it?
i thought that i would type my friends computer ip address which is something like ssh user@235.65.43.678 and it would connect me to his computer. but obviously im way off the mark. what is the syntax for connecting to his computer? i can work it out if you give me a basic idea of the syntax. is a remote server simply another computer? in this case his computer? or is a remote server a central point between the two computers that we have to have an account in order to communicate? |
Read this page about SSH on Wikipedia.
|
ha ha. i need a degree in nasa to understand that. i guess ill have to forget about ssh
|
Search the web for 'openssh tutorial'. You don't need a Degree to use it though.
|
Quote:
Quote:
1) Is 235.65.43.678 the public IP address of his computer, or is his computer behind a NAT (router, firewall, etc.) and 235.65.43.678 is the public IP of the entire network? If it's the former, you're set. If it's the latter, he'll need to add a rule in his NAT to allow incoming connections on port 22 (the default SSH port, or you/him could pick a custom port if you wish) to be forwarded to the private IP of his computer. That way the router knows "This incoming connection needs to go to that computer". 2) "user" will need to be a user account on his computer that you have the password for. 3) His computer will need to have sshd installed and running, with the necessary firewall settings to allow incoming connections. |
Quote:
|
thanks guys. i appreciate all the help.
so for the record, heres what i have done so far. 01. I used smallponds adduser command and created a user called userb 02. i gave the account a password and verified it. (lets pretend its dabby) 03. i went to a site called whatismyip.com and i found out the ip address of my computer. i sent my friend his user id and password and my ip address with instructions to type into the terminal ssh userb@224.54.65.221 hit enter and type 'dabby' which is his password on my machine. and then type me a message if he gets the 'go ahead'. did I do this correctly? what else do i have to do in order to hook these up? thanks guys |
im looking around the internet on how to set up ssh and its pretty diverse. there are no two ways to set up ssh. everyone has a different version. some called it ssh, some call it sshd... and very often when i follow their advice i get command not recognised. linux and programming and system admin is a deep thing. im just going to keep going until i understand it.
|
Quote:
Quote:
sshd is the server daemon, this is what's sitting in the background listening for incoming connections If you tells us what Linux distro you're using, it will make it easier to provide specific commands. |
wow, great info. thanks. Im using ubuntu studio, im a musician so it comes with all the music software.
ok, so I really understand the ip address and the router etc etc. I did the ifconfig and <im presuming the address i need is the wlan0? so now i have my new ipaddress that goes straight to my computer, does this mean my fruiend in the uk can type...... ssh userb@(new ip) hes probably asleep right now so <i wonder if theres any way i can log in as him and test it out? thanks for the help. anything you have will be much appreciated. |
well it definitely logged in because the username changed to his username so i was logged in as him. THIS MIGHT WORK!!!!! ha ha
if you can give me a way to have both accounts working i can test it myself before he wakes up. |
All times are GMT -5. The time now is 11:13 AM. |