Karl Cunningham wrote:
On 1/23/2008 2:48 PM, Ralph Shumaker wrote:
Currently, there should be no ssh traffic that I'm aware of. I
eventually want to learn how to ssh into my own machine from
somewhere else, but for now, ssh is not being used by me.
Turn of sshd for now and leave it off. Here are some things to do
BEFORE you bring it back up. Check out $man sshd_config for more.
Protocol 2
PubkeyAuthentication yes
PasswordAuthentication no
ChallengeResponseAuthentication no
PermitRootLogin no
AllowUsers list your valid user names
Karl
Only two of those things needed changing in my file.
But one of the items you listed doesn't even appear in there, namely
AllowUsers. I like what "man sshd_config" says about it, namely that
you can specify [EMAIL PROTECTED] But I'm a little unclear about it.
If I'm on a friend's computer, and I want to login to mine, I have
different user names between the two systems. Let's say that my
friend's computer is hostname THERE and that my login there is RALPH.
Let's say that my PC is hostname HERE and that my local login is ME.
What would I specify in my file (sshd_config) on my PC for AllowUsers?
I'm guessing one of these (probably the latter):
[EMAIL PROTECTED]
[EMAIL PROTECTED]
Once my PC is set up correctly, and I am locally logged in THERE as
RALPH, how do I ssh login to HERE as ME?
Assuming I get ssh logged in on HERE remotely from THERE, is it similar
to having been logged in locally HERE as a different user and used "su -
ME"? Is it even remotely similar in effect? Will I have access to the
same files? Will my path and other environment variables be the same?
Assuming I get ssh logged in on HERE as ME (from THERE as RALPH), would
I be able to use sudo that way? I have nearly no dealings with sudo.
My main interest in using ssh is to set up my friend and my mom such
that I can log in remotely and do admin. But if I can learn how to ssh
into my own PC and do admin stuff that way, then I'm sure I can extend
it to their PCs. But for now, I just want to know how to ssh into my
own. I'll worry about the other PCs later.
Here's a strange question: Can I be logged in locally on HERE as ME,
and then ssh login to HERE as ME? (Is that kinda like the same user
logging in on console 1 and console 2 at the same time?)
--
Ralph
--------------------
Mark Twain once observed that people who spell words the same way all
the time are like people who wear the same clothes every day.
--quoted from http://prorev.com/quotes5.htm
--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list