Re: ssh question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

bruce wrote:
> research hasn't shown an answer... is there a way to do:
> 
>  ssh user/passwd@host
> 
> so i can ssh into a system, sending the user/passwd at the same
> time..
> 
> i'm looking at doing a quick python app to run a remote app on a
> separate machine in the network...
> 
> thoughts/comments/etc...

I don't believe there is a way to do that, though I could be wrong
since I've not found a need to do this.

What I've done and I imagine would work out best for you is to use ssh
key-based authentication.  Combined with ssh-agent, you enter your ssh
key's password once at login and then you can ssh to other boxes
without needing to type any password.

Use ssh-keygen to generate a key pair (private key and public key).
Then copy the contents of the public key file (~/.ssh/id_rsa.pub, by
default) to the remote computer, in the file ~/.ssh/authorized_keys.
Set the permissions of ~/.ssh and ~/.ssh/authorized_keys to 700 and
600, respectively (if either are writable by anyone other than the
owner, ssh will complain and not use the key).

After you do this, you should be able to run ssh user@host.  You'll
get a prompt for the passphrase of the ssh key you generated.  Enter
it to log in.  Once that's working, log out and then use ssh-add to
add your key to the ssh-agent.  Then ssh to the remote host again and
you should not be prompted.

- -- 
Todd        OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp
======================================================================
When a stupid man is doing something he is ashamed of, he always
declares that it is his duty.
    -- George Bernard Shaw

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.4 (GNU/Linux)
Comment: When crypto is outlawed bayl bhgynjf jvyy unir cevinpl.

iQFDBAEBAgAtBQJEyCiYJhhodHRwOi8vd3d3LnBvYm94LmNvbS9+dG16L3BncC90
bXouYXNjAAoJEEMlk4u+rwzjuLgH/2eQeQcnmvx2Ff1nQsUfMWpk/yqvj2sG+OT8
VNZhJ+r9lrZxsP9sUfC01JPTHXTmoZT7CJBRNpP8FBOygywZxDENrYFwTEFyJqqz
mTrFbDJIYp6oTqqJV0BzO0/n+FYymOGdIGSwrZ/YUYX32WNw0P727YzuXyAkLvCh
bnbSY6Lol56DMVeZNZUlqiO1sKN/CsBJHsJqJbVN1GJVJ+p829s97LqeBj6obXGn
KkesCS7Gs2gi8SfFRKUObg5rx7z6V1wU8ZvFOwvNbDTQozKBbuNiZSrqNd9mA4se
zkjBcrb1b5wdkmuL56VgjNqqoK21fT/Si+jnBK9qWgkkWQiwpog=
=3Ri2
-----END PGP SIGNATURE-----

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux