Problem
How do I do a direct connect using cu(C) between two machines?
Solution
The following steps will enable you to use the cu(C) command on the main machine to log in to the remote machine.
1. Attach the machines with a null modem cable into their serial ports.
2. Edit the file /usr/lib/uucp/Devices on the main machine to have a line that looks like:
Direct tty** - 9600 directwhere '**' is the serial port you are using on the main machine, such as 1a or 2a.
3. Enable the port of the remote machine (do this on the remote machine):
enable /dev/tty**where '**' is the serial port you are using, such as 1a or 2a.
4. Disable the port of the main machine (do this on the main machine):
disable /dev/tty**where '**' is the serial port you are using, such as 1a or 2a.
5. Check the permissions of the serial port on the main machine:
l /dev/tty**The ownership and permissions settings should look like the following:
crw--w--w- 1 uucp uucp 5, 0 Feb 14 12:00 /dev/tty**If it does not, run the command:
chown uucp:uucp /dev/tty**To connect to the remote machine from the main machine, type:
cu -x9 -ltty** dirwhere '**' is the port of the main machine. Press the <Break> key until the lines are synchronized and you get a login prompt. To log in, you must have an account on the remote machine.
If you do not get a login prompt, read the cu -x9 output for any clues of what could be wrong. The -x9 shows detailed output of what is happening. Look in the manual under cu(C) for more information on cu.
Once you are logged in:To copy from a remote machine to the machine you are on:
~%take remote_filename to_filenameTo copy from the machine you are on to a remote machine:
~%put filename to_remote_filenameNOTE: On SCO UNIX Version 4.x, a bi-directional connect can be made by enabling the non-modem serial ports (tty1a for example) on both machines. See another article in this database titled:
"Basic configuration and command syntax for UUCP on SCO UNIX and XENIX."