LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 08-21-2009, 01:51 AM   #1
archey
LQ Newbie
 
Registered: Jun 2009
Posts: 27

Rep: Reputation: 15
Opening a file in SSH on Cenos 5


What is the command to open a file in SSH? By the way, I am using CentOS on my VPS.

Because I got this error while adding a addon domain in cpanel

Code:
Error from park wrapper: Using nameservers with the following IPs: 67.202.88.188,67.202.88.189 Sorry, the domain is already pointed to an IP address that does not appear to use DNS servers associated with this server. Please transfer the domain to this servers nameservers or have your administrator add one of its nameservers to /etc/ips.remotedns and make the proper A entries on that remote nameserver.

Last edited by archey; 08-21-2009 at 01:53 AM.
 
Old 08-21-2009, 02:13 AM   #2
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

Rep: Reputation: Disabled
What procedure did you follow? Once you ssh the remote system successfully, you get the shell for the remote system and you can use any text editor to open the file.
 
Old 08-21-2009, 02:20 AM   #3
archey
LQ Newbie
 
Registered: Jun 2009
Posts: 27

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by linuxlover.chaitanya View Post
What procedure did you follow? Once you ssh the remote system successfully, you get the shell for the remote system and you can use any text editor to open the file.
Sorry, I don't understand, it might be that I am tired as it's 1:20 AM or that I am I real idiot towards this stuff right now.
 
Old 08-21-2009, 02:25 AM   #4
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

Rep: Reputation: Disabled
Ok what is the procedure that you follow? And if you are tired just get some sleep. It might just help more than us.
 
Old 08-21-2009, 02:31 AM   #5
archey
LQ Newbie
 
Registered: Jun 2009
Posts: 27

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by linuxlover.chaitanya View Post
Ok what is the procedure that you follow? And if you are tired just get some sleep. It might just help more than us.
Procedure as in?
 
Old 08-21-2009, 02:34 AM   #6
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

Rep: Reputation: Disabled
isnt vi opening the file after ssh'ing the remote machine?
 
Old 08-21-2009, 02:39 AM   #7
archey
LQ Newbie
 
Registered: Jun 2009
Posts: 27

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by linuxlover.chaitanya View Post
isnt vi opening the file after ssh'ing the remote machine?
I have logged into SSH, but i do not know the command to open a file, is it something like:

exec /etc/ips.remotedns
 
Old 08-21-2009, 03:42 AM   #8
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

Rep: Reputation: Disabled
vi <filename>

Vi is the command line editor. You can use nano, pico, or several others. Vi is the most commonly used as far as I know. Its more than just basic editor.
 
Old 08-21-2009, 01:50 PM   #9
archey
LQ Newbie
 
Registered: Jun 2009
Posts: 27

Original Poster
Rep: Reputation: 15
Okay did that, it worked. Thanks, getting some sleep did help XD
 
Old 08-22-2009, 12:05 AM   #10
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

Rep: Reputation: Disabled
Quote:
Originally Posted by archey View Post
Okay did that, it worked. Thanks, getting some sleep did help XD
Good news. It feels nice to see when solutions help others.
 
  


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
Configuring AcceptPathInfo in CenOS 5.3 xshad0wfx Linux - Server 5 06-24-2009 02:22 PM
I want to install Perl on CenOS blck_kenzo Linux - Software 1 05-19-2009 11:32 AM
SSH connection & opening file windycity_linux Linux - Newbie 3 12-25-2006 01:40 AM
opening a gui program through ssh snumpy Linux - Newbie 7 02-07-2005 11:20 PM
Opening an X program from ssh command line petway56 Linux - General 2 02-14-2003 04:33 PM


All times are GMT -5. The time now is 09:35 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration