# Linux login help requested

**URL:** <https://boards.straightdope.com/t/linux-login-help-requested/465462>\
**Category:** Factual Questions\
**Created:** [September 27, 2008, 12:27pm UTC](https://boards.straightdope.com/t/linux-login-help-requested/465462 "2008-09-27T12:27:48Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![KneadToKnow](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/kneadtoknow/32/3999_2.png) [@KneadToKnow](https://boards.straightdope.com/u/KneadToKnow)\
**Post date:** [September 27, 2008, 12:27pm UTC](https://boards.straightdope.com/t/linux-login-help-requested/465462/1 "2008-09-27T12:27:48Z")

</div>

I will admit right off that Linux is still just a little bit like voodoo to me, so please be patient.

Here’s the basic situation:

Two computers, **Albus** and **M5**.

I boot **Albus** from [SystemRescueCD](http://sysresccd.org/Main_Page) with network support configured correctly (i.e., I can ping **M5** and all is well). Note: I am pinging it by its IP address, 192.168.8.2, because the name is not resolving.

**M5** runs Ubuntu 7.10, and so as I understand it I should be able to log in to it from another Linux machine on the same network, with proper ID and password.

What’s the procedure for doing that? I’ve tried every variation I can think of with username and machine name and I’ve gotten nowhere.

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![Sage\_Rat](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/sage_rat/32/399_2.png) [@Sage\_Rat](https://boards.straightdope.com/u/Sage_Rat)\
**Post date:** [September 27, 2008, 2:49pm UTC](https://boards.straightdope.com/t/linux-login-help-requested/465462/2 "2008-09-27T14:49:13Z")

</div>

> [@KneadToKnow](#):
>
> **M5** runs Ubuntu 7.10, and so as I understand it I should be able to log in to it from another Linux machine on the same network, with proper ID and password.
> 
> What’s the procedure for doing that? I’ve tried every variation I can think of with username and machine name and I’ve gotten nowhere.
> 
> Thanks in advance!

Are you trying to remote desktop in? Telnet?

I’ve never set up either (and telnet might be in by default), but I’d gather that you need to set up M5 as a server for that sort of connection first. If telnet, I think you need to have the telnetd service running. Remote desktoping I think is usually done via [VNC](http://en.wikipedia.org/wiki/Virtual_Network_Computing), so you’d need to set that up.

---

<div class="post-metadata">

**Author:** ![LSLGuy](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/lslguy/32/5813_2.png) [@LSLGuy](https://boards.straightdope.com/u/LSLGuy)\
**Post date:** [September 27, 2008, 3:17pm UTC](https://boards.straightdope.com/t/linux-login-help-requested/465462/3 "2008-09-27T15:17:58Z")

</div>

IANA Linux guy, but I recall various shell apps, such as rsh & ssh which are for that purpose. You run them on the client computer & then log on to the host from inside the rsh/ssh tool.

---

<div class="post-metadata">

**Author:** ![svrider](https://avatars.discourse-cdn.com/v4/letter/s/eb8c5e/32.png) [@svrider](https://boards.straightdope.com/u/svrider)\
**Post date:** [September 27, 2008, 3:36pm UTC](https://boards.straightdope.com/t/linux-login-help-requested/465462/4 "2008-09-27T15:36:01Z")

</div>

The remote computer needs to run sshd, if it’s not installed you can do so by running _sudo apt-get install openssh-server_ under ubuntu.

The client uses ssh, at a shell prompt type: _ssh username@remote-ip_ then enter the password.

Username needs to exist on the remote server and it is that users password you must enter.

For example: _ssh [KneadToKnow@192.168.1.2](mailto:KneadToKnow@192.168.1.2)_

---

<div class="post-metadata">

**Author:** ![KneadToKnow](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/kneadtoknow/32/3999_2.png) [@KneadToKnow](https://boards.straightdope.com/u/KneadToKnow)\
**Post date:** [September 27, 2008, 9:49pm UTC](https://boards.straightdope.com/t/linux-login-help-requested/465462/5 "2008-09-27T21:49:43Z")

</div>

Thanks all! I’ll check on ssh.

I’m not trying to do remote desktop. I just want to be able to mount a folder on M5 so I can back up stuff from Albus.

---

<div class="post-metadata">

**Author:** ![Rysto](https://avatars.discourse-cdn.com/v4/letter/r/ecccb3/32.png) [@Rysto](https://boards.straightdope.com/u/Rysto)\
**Post date:** [September 27, 2008, 11:19pm UTC](https://boards.straightdope.com/t/linux-login-help-requested/465462/6 "2008-09-27T23:19:29Z")

</div>

Oh, you want access to files on one computer from another? NFS is what you’re looking for, not ssh.

You could also use scp to copy files over the network, which requires ssh. In a pinch, a Linux system can mount files using the ssh filesystem(ssh fs), but that’s quite slow.

---

<div class="post-metadata">

**Author:** ![Wheeljack](https://avatars.discourse-cdn.com/v4/letter/w/838e76/32.png) [@Wheeljack](https://boards.straightdope.com/u/Wheeljack)\
**Post date:** [September 28, 2008, 12:09am UTC](https://boards.straightdope.com/t/linux-login-help-requested/465462/7 "2008-09-28T00:09:57Z")

</div>

Well, first you have to convince \*\*M5 \*\*that its behavior is contrary to the laws of man and God…

---

<div class="post-metadata">

**Author:** ![KneadToKnow](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/kneadtoknow/32/3999_2.png) [@KneadToKnow](https://boards.straightdope.com/u/KneadToKnow)\
**Post date:** [September 28, 2008, 2:23am UTC](https://boards.straightdope.com/t/linux-login-help-requested/465462/8 "2008-09-28T02:23:04Z")

</div>

> [@Rysto](#):
>
> Oh, you want access to files on one computer from another? NFS is what you’re looking for, not ssh.
> 
> You could also use scp to copy files over the network, which requires ssh. In a pinch, a Linux system can mount files using the ssh filesystem(ssh fs), but that’s quite slow.

How do I mount the network drive using NFS?

---

<div class="post-metadata">

**Author:** ![Digital\_Stimulus](https://avatars.discourse-cdn.com/v4/letter/d/aeb1de/32.png) [@Digital\_Stimulus](https://boards.straightdope.com/u/Digital_Stimulus)\
**Post date:** [September 28, 2008, 5:13am UTC](https://boards.straightdope.com/t/linux-login-help-requested/465462/9 "2008-09-28T05:13:53Z")

</div>

> [@KneadToKnow](#):
>
> Thanks all! I’ll check on ssh.
> 
> I’m not trying to do remote desktop. I just want to be able to mount a folder on M5 so I can back up stuff from Albus.

If all it’s for is backup, you most likely want to use _rsync_. It can use _ssh_ as its remote shell, and the basic command format is similar – just _don’t_ mix up SRC and DEST locations.

NFS is like samba in that it’s for network mounts. Effective, but may not be quite what you want.

---

<div class="post-metadata">

**Author:** ![KneadToKnow](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/kneadtoknow/32/3999_2.png) [@KneadToKnow](https://boards.straightdope.com/u/KneadToKnow)\
**Post date:** [September 30, 2008, 3:24pm UTC](https://boards.straightdope.com/t/linux-login-help-requested/465462/10 "2008-09-30T15:24:07Z")

</div>

Just to document my solution (even if only so I can find it again when I have this problem in the future), here’s how it works:

I don’t know what protocols and whatnot are needed, but whatever they are, they’re already in place, because it turns out I don’t have to start anything at all or actually “login” at all. All I have to do is issue the mount command with the proper syntax, which in my case is:

mount [//192.168.8.2/netbackup](https://192.168.8.2/netbackup) /mnt/backup

I’m then prompted for a password. I use my regular user password for Ubuntu, and it goes right through. The share I’m mounting (netbackup) is also my SMB share, but I’m almost certain I’m not using SMB, because booting from SysRescCD wouldn’t put me in the workgroup. I’m sure I tried the mount command the other day when I was trying to do this, but I’m not sure I ever tried it with the // in front of the IP address. I’m pretty sure I only tried it with /192.168.8.2/netbackup.

Anyway, problem solved.

It turns out, I had done this successfully once before and that’s why I knew I could do it. And lo and behold, it turns out that when I did it successfully that time before, in a fit of foresight that astounds even me, I wrote down what I did. :eek:
