Re: Can someone recommend an FTP server for Mac OS 10.5.6 that ...
- From: Jolly Roger <jollyroger@xxxxxxxxx>
- Date: Tue, 20 Oct 2009 14:29:08 -0500
In article
<4bdd20d9-38a4-4310-81ac-d17b828766a2@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
laredotornado <laredotornado@xxxxxxxxxxx> wrote:
I am able to run the "sftp@localhost" command from the command line so
I guess something was already set up. But my question is, I am logged
in as "dalvarado" but I want to be able to run "sftp j2ee-
test@localhost" without specifying a password. The only files in my
~/.ssh/ directory are
authorized_keys
id_rsa
known_hosts
Can you point me closer to the solution? Google doe not have a lot of
useful information when I type in "add to authorized_keys". Thanks ,-
You might consider configuring the server to require public/private keys
to connect rather than using password authentication, which is much more
secure. To do this:
1. On the host from which you will connect (the client):
# ssh-keygen -t dsa
Generating public/private dsa key pair.
Enter file in which to save the key (/Users/you/.ssh/id_dsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /Users/you/.ssh/id_dsa.
Your public key has been saved in /Users/you/.ssh/id_dsa.pub.
The key fingerprint is:
4a:26:a3:df:17:fd:72:3c:c3:37:84:3a:2f:e2:2e:32
you@xxxxxxxxxxxxxxxxxx
2. On the host to which you want to connect (the server):
a. Copy id_dsa.pub to ~/.ssh/authorized_keys.
b. Do a chmod 0600 ~/.ssh/authorized_keys.
c. Change these /etc/sshd_config properties:
Protocol 2
PermitRootLogin no
PubkeyAuthentication yes
PasswordAuthentication no
PermitEmptyPasswords no
ChallengeResponseAuthentication no
d. Restart the sshd service:
killall -HUP xinetd
-or-
cd /System/Library/LaunchDaemons
sudo launchctl unload ssh.plist; sudo launchctl load ssh.plist
Next time you connect from the client machine, you will have the
opportunity of storing the pass phrase in the keychain. After you store
it in the keychain, you will no longer be prompted on connect.
--
Send responses to the relevant news group rather than email to me.
E-mail sent to this address may be devoured by my very hungry SPAM
filter. Due to Google's refusal to prevent spammers from posting
messages through their servers, I often ignore posts from Google
Groups. Use a real news client if you want me to see your posts.
JR
.
- References:
- Can someone recommend an FTP server for Mac OS 10.5.6 that ...
- From: laredotornado
- Re: Can someone recommend an FTP server for Mac OS 10.5.6 that ...
- From: Steve Bellenot
- Re: Can someone recommend an FTP server for Mac OS 10.5.6 that ...
- From: laredotornado
- Can someone recommend an FTP server for Mac OS 10.5.6 that ...
- Prev by Date: Re: Can someone recommend an FTP server for Mac OS 10.5.6 that ...
- Next by Date: Re: OT: Re: full undo functionality to the finder
- Previous by thread: Re: Can someone recommend an FTP server for Mac OS 10.5.6 that ...
- Next by thread: Re: Can someone recommend an FTP server for Mac OS 10.5.6 that ...
- Index(es):
Relevant Pages
|