Text-only remote terminal

I have a box running an old Linux text-only distribution. I want to connect to it from my 11.4 KDE desktop computer so I can execute CLI commands on it. There are no other users, and I am connected through a router. Both boxes can ping each other. What is the simplest way to do this? Is there a how-to that I can read?

Thanks.


ssh -l "remote_user_name" "remote_ip"

you will be asked to accept a key, do so with “yes”. And you should be in. Take care, port 22 needs to be open in the firewall on both machines.

On Thu, 09 Feb 2012 22:06:02 +0000, Knurpht wrote:

> Take care, port 22 needs to be open in the firewall on both machines.

Should only be necessary on the target machine. Outbound connections
don’t require opening a port in the firewall…

Jim


Jim Henderson
openSUSE Forums Administrator
Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C

I was thinking after I posted, Jim. Wanted to correct the post, thanks.

Thanks for the quick response. I tried that but the connection was refused. Unfortunately the remote box does not come with either ssh or sshd or any network utilities and it’s going to take some time to resolve that. I will probably have to compile it from source. I may have some more questions later.

On Thu, 09 Feb 2012 22:26:02 +0000, Knurpht wrote:

> I was thinking after I posted, Jim. Wanted to correct the post, thanks.

NP. :slight_smile:

Jim


Jim Henderson
openSUSE Forums Administrator
Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C

On 2012-02-10 04:16, ionmich wrote:

> Thanks for the quick response. I tried that but the connection was
> refused. Unfortunately the remote box does not come with either ssh or
> sshd or any network utilities and it’s going to take some time to
> resolve that. I will probably have to compile it from source. I may have
> some more questions later.

If you are on a local network, with nobody looking, try telnet.


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)

Thank you VERY much. I now have a command line from my local box on the remote machine. I also set up the remote machine as a NFS server and edited the remote hosts.allow file to include the client with “rw” privileges. I can now mount the remote /home/user directory via NFS on my local box, but cannot copy files from my local box running as root? (Permission denied). The /home/user directory has “group” permissions set to “users”. Any suggestions?

Thanks again.

ionmich wrote:
> Thank you VERY much. I now have a command line from my local box on the
> remote machine. I also set up the remote machine as a NFS server and
> edited the remote hosts.allow file to include the client with “rw”
> privileges. I can now mount the remote /home/user directory via NFS on
> my local box, but cannot copy files from my local box running as root?
> (Permission denied). The /home/user directory has “group” permissions
> set to “users”. Any suggestions?

NFS has a facility called root-squash, which disallows root access,
because root access over NFS is insecure. So don’t change root-owned
files via NFS. Or change them as some user and then chown them via your
telnet session. Or install ssh and friends and use them to do it all.

Thank you all. I now have exactly what I wanted. The ability to write and test programmes on a remote machine from my local keyboard, and to copy (via NFS) and test them on the local computer as well, running a different distribution.

On 2012-02-11 05:56, ionmich wrote:
>
> Thank you all. I now have exactly what I wanted. The ability to write
> and test programmes on a remote machine from my local keyboard, and to
> copy (via NFS) and test them on the local computer as well, running a
> different distribution.

But please remember that telnet transmits in clear, even the password.
Everything can be eavesdropped, so it should be a temporary measure till
you get ssh working - unless you are inside a local network and you can
trust everybody.


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)