Fedora Linux Support Community & Resources Center
  #1  
Old 29th September 2011, 03:12 PM
settingsun Offline
Registered User
 
Join Date: Aug 2011
Posts: 150
windows_xp_2003firefox
Sending Bash Commands thru ssh

I have 2 computers behind a router. I intend to use the windows xp/ firefox machine to look at the fedora index file on the other machine as I write code.

I thought the next step was to build ssl into apache from the fedora command line.


I think its better to learn to ssh into the fedora command line, from putty running on the xp machine, because when the server is up and running from a remote location, my only option will be to access it remotely.

Its best to learn to do that while the fedora machine is still within arms reach. I know I can use putty to make a pair of keys and send the public key to the fedora user that is sshd. I know that public key is used to verify the matching private key that stays with putty.


I know I could set all of this up sitting at the fedora keyboard, but it seems better to do all installation and configuration of ssh (on fedora) from putty on xp. That is because the machine I use will create the keys. If that machine is xp using putty then only the public key needs to move across the internet to the fedora machine.

If I use the fedora machine then it generates the keys, and the private one needs to move across the internet to putty on my xp machine. That is a security risk.


Saying this another way:

I think the server only needs the public key, and the client only needs the private key. If I build this on the server, then the server generates the keys, keeps the public one and sends the private one to putty.


If I understand all of this correctly, then doing everything from putty is the best way. That means using putty to create directories and files - and setting values in configuration files.


Is this right? If so, I'm asking for help making that initial connection to the fedora command line (I assume it will have to be unencrypted),

and - learning the basic syntax to send bash commands through an encrypted ssh connection.


Thanks!
Reply With Quote
  #2  
Old 29th September 2011, 04:28 PM
Keldorn Offline
Registered User
 
Join Date: Jun 2008
Location: Russia
Age: 26
Posts: 517
windows_xp_2003chrome
Re: Sending Bash Commands thru ssh

Quote:
If so, I'm asking for help making that initial connection to the fedora command line (I assume it will have to be unencrypted)
If you are using ssh - you will connect through secure tunnel (ssh - secure shell). You don't need to generate ssl-keys to run encrypted connection.
Just accept with putty key which was generated by the system during initial ssh configuration.
Putting public key onto fedora machine will allow you to connect it without password (or with it, if key was encrypted with passphrase)
Reply With Quote
  #3  
Old 29th September 2011, 11:28 PM
settingsun Offline
Registered User
 
Join Date: Aug 2011
Posts: 150
windows_xp_2003firefox
Re: Sending Bash Commands thru ssh

Thank you very much Keldorn. That was enough to get me started.
Reply With Quote
  #4  
Old 29th September 2011, 11:33 PM
pete_1967 Offline
Clueless in a Cuckooland
 
Join Date: Mar 2006
Location: Here now, elsewhere tomorrow.
Posts: 4,328
linuxfirefox
Re: Sending Bash Commands thru ssh

FYI: Putty keys are not compatible with OpenSSH. You need to convert the Putty's public key to OpenSSH before you try to use it on your server, otherwise if you use Putty format public key, enable ssh, and disable password authentication, you will lock yourself out of the system.
__________________
A Drink is Not Just For Christmas - SaskyCom :thumb:


“Give a man a fish; you have fed him for today. Teach a man to fish; and you have fed him for a lifetime” so now go and...
RTFM FIRST: http://docs.fedoraproject.org/ & http://rute.2038bug.com/index.html.gz
Reply With Quote
  #5  
Old 30th September 2011, 01:34 AM
Doug G Offline
Registered User
 
Join Date: Jul 2005
Posts: 640
windows_7firefox
Re: Sending Bash Commands thru ssh

Quote:
Originally Posted by pete_1967 View Post
FYI: Putty keys are not compatible with OpenSSH. You need to convert the Putty's public key to OpenSSH before you try to use it on your server, otherwise if you use Putty format public key, enable ssh, and disable password authentication, you will lock yourself out of the system.
Hmm, I use putty generated keys on fedora servers without any problems. I install the key manually from the windows machine by copying the putty key to the clipboard, open a ssh connection to the fedora machine in putty, open ~/.ssh/authorized_keys file in a cli editor (vim for me) and paste the key. This process always works for me.

I PuttyGen I select ssh2-RSA key type.
__________________
======
Doug G
======
Reply With Quote
Reply

Tags
bash, commands, sending, ssh

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
bash commands as root julia2009 Security and Privacy 10 6th March 2010 11:11 AM
BASH Problem : Commands not found sma Alpha, Beta & Snapshots Discussions (Fedora 10 Only) 10 12th November 2008 11:00 PM
bash commands not working linuxjon Using Fedora 2 19th February 2007 08:53 AM
Long commands in bash, but no newline buskmann Using Fedora 3 10th January 2006 02:28 AM
Bash commands not working Dread Using Fedora 6 15th December 2005 10:44 AM


Current GMT-time: 10:19 (Friday, 24-10-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat
Turnhout - Neue Neustadt Photos on Instagram - Villa Gesell Photos