LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-22-2013, 01:46 AM   #16
miros84
Member
 
Registered: Aug 2009
Location: Spain
Distribution: Debian stable, squeeze
Posts: 501

Original Poster
Rep: Reputation: 31

Quote:
Originally Posted by unSpawn View Post
This is probably easier:
Code:
echo -en "Host myremotehost"\nHostName 10.10.10.10\nPort 1000\n" >> ~/.ssh/config
I tried this and config file is the easyest way I think.
But I prefer to edit the file, instead of echo. It is easy and work.
 
Old 01-23-2013, 08:21 PM   #17
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by miros84 View Post
I tried this and config file is the easyest way I think.
Yes, you're right. That's what configuration files are for after all...
 
Old 01-24-2013, 12:25 PM   #18
miros84
Member
 
Registered: Aug 2009
Location: Spain
Distribution: Debian stable, squeeze
Posts: 501

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by unSpawn View Post
Yes, you're right. That's what configuration files are for after all...
Problem is that files doesnot exist and I dont know for their existing. So I cannot explore their funcionality or man page.
 
Old 01-24-2013, 12:30 PM   #19
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Quote:
Originally Posted by miros84 View Post
Problem is that files doesnot exist and I dont know for their existing. So I cannot explore their funcionality or man page.
But you can explore the manual and will find a description of that config file in it: http://www.openssh.com/manual.html
 
Old 01-24-2013, 12:51 PM   #20
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
In any regular Linux distribution "~/" should point to the users home (as in the environment variable "$HOME"). If the "~/.ssh" directory does not exist then you can create it as regular user with
Code:
install -d ~/.ssh -m 0700
and then create the file with
Code:
( umask 077 && touch ~/.ssh/config )
* 'man ssh_config' specifically holds the "Host" and other declarations should you want to read about it.
 
  


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
Can't SSH to remote machine: Connection closed by remote host Avatar Linux - Networking 35 10-23-2017 12:21 AM
unable to connect to remote host using ssh tariq Linux - Newbie 31 11-04-2011 09:01 AM
ssh can not connect remote host crazy6 Linux - Newbie 2 03-04-2011 07:28 PM
Fedora 10/unable to ssh out from box to remote host (SSH within LAN ok) huskeypm Linux - Networking 3 04-14-2009 07:37 PM
how 2 connect 2 remote host using SSH fhameed Linux - Networking 2 09-08-2004 08:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:59 AM.

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