LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-24-2012, 10:38 PM   #1
DaverR
LQ Newbie
 
Registered: Apr 2012
Posts: 12

Rep: Reputation: Disabled
Saving a file to desktop/Secure remote access from the command line/Fedora 15


Hello again everyone. Just a couple of questions. From the command line, after I set the static ip address for the machine, how can I save that information to a file on the desktop? Another question, how do you set up secure remote access from the command line? Again, thanks for all your help.
 
Old 04-25-2012, 02:01 AM   #2
rodrifra
Member
 
Registered: Mar 2007
Location: Spain
Distribution: Debian
Posts: 202

Rep: Reputation: 36
Quote:
Originally Posted by DaverR View Post
From the command line, after I set the static ip address for the machine, how can I save that information to a file on the desktop?
If you did it with ifconfig just for the session (This is for Debian like distros, check your own and modify it accordingly)

Code:
ifconfing -a > ~/Desktop/IPAdd.txt
If you modified your /etc/network/interfaces (Again for Debian like, in Fedora it might be /etc/sysconfig/network-scripts/ifcfg-eth1) you can make a link to that file and you will have the info.

Code:
ln -s /etc/network/interfaces ~/Desktop/IPAdd.txt
Quote:
how do you set up secure remote access from the command line?
I think the next comman should work in Fedora (run it as root).

Code:
yum install openssh-server
That will install the ssh server, which will give you remote secure access from the command line using ssh clients.

Last edited by rodrifra; 04-25-2012 at 02:14 AM.
 
Old 04-25-2012, 07:04 PM   #3
DaverR
LQ Newbie
 
Registered: Apr 2012
Posts: 12

Original Poster
Rep: Reputation: Disabled
Thanks for your reply rodrifra. I thought maybe I could figure it out with just the commands but after doing the research it just gets more confusing. What I am trying to do is create a bash script to connect to another machine remotely with a secure connection. I know that to do that I must use ssh. I just don't know how to get it started. The first question I posted will be part of the script but I think I can get that one ok. It is the ssh part that I have trouble with. The script will be based on user input and selections to initiate the connection. I welcome any suggestions. Thanks.
 
Old 04-26-2012, 08:22 AM   #4
rodrifra
Member
 
Registered: Mar 2007
Location: Spain
Distribution: Debian
Posts: 202

Rep: Reputation: 36
You can use 'here documents' to automate the conextion to the remote machine. To avoid the password authentication you will have to use public keys. To use public keys, just generate a public/private key pair with ssh-keygen (without passphrase). Send your public key over to the server you want to connect to and store it in the user's you will be connecting as under the .ssh directory in the authorized_keys file, and key your private key under $HOME/.ssh.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
VLC remote access with SSH and command line trox Linux - Networking 5 08-30-2014 08:18 AM
[SOLVED] Need to set up secure remote access to file server aes canis Linux - Networking 4 10-28-2011 03:16 AM
Advice: Secure remote desktop access matiasar Linux - Networking 2 02-08-2010 06:17 AM
LXer: Secure remote access to your desktop LXer Syndicated Linux News 0 10-05-2007 12:50 PM
Saving a file to a USB thumb drive from the command line dbough Linux - Newbie 7 04-17-2007 07:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:07 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration