LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 01-16-2012, 03:22 PM   #1
Advice Pro
Member
 
Registered: Mar 2009
Location: Virginia, US
Distribution: Ubuntu 10.10 & Debian 6.0.3,
Posts: 343

Rep: Reputation: 7
What is SSH & how do I use it to all avoid pressing 'Y' during terminal tasks?p


I read that it is SSH that makes me have to press either 'Y' or 'N' during some tasks at the terminal. A Google search mostly rendered about remote clients, but I'm not using a remote PC, this computer is my home desktop. There was one link, which I didn't understand, read about a bash:

What Is SSH?
 
Old 01-16-2012, 03:24 PM   #2
gmartin
Member
 
Registered: Mar 2003
Location: PA
Distribution: Slackware 13.37 Linux Reg # 341245
Posts: 285

Rep: Reputation: 40
If you are logged in locally, then you are in a terminal window and (likely) not using ssh. What command are prompting you for Y or N? Perhaps we can start there.
 
Old 01-16-2012, 03:28 PM   #3
Advice Pro
Member
 
Registered: Mar 2009
Location: Virginia, US
Distribution: Ubuntu 10.10 & Debian 6.0.3,
Posts: 343

Original Poster
Rep: Reputation: 7
Installations
 
Old 01-16-2012, 03:50 PM   #4
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 373Reputation: 373Reputation: 373Reputation: 373
Quote:
Originally Posted by Advice Pro
Installations
So, what you're probably using is "apt-get" or "aptitude" right?

Those commands are separate from ssh. I'm not sure where the Y/N confusion with SSH was introduced, but trust me, when it comes to installing software, SSH is not the responsible party

If you want to avoid typing 'Y' when installing with apt-get, you can add '-y' to the command. For instance:
Code:
apt-get -y install <insert package name here>
That command will install the package and any necessary dependencies without asking for approval.

Likewise,
Code:
aptitude -y install <insert package name here>
will do the same.

For both commands, you'll need to be root (of course).

EDIT:
Just as a side note, SSH is a Secure SHell. It allows encrypted network communication between two computers. It may ask a yes/no question every so often (i.e. "machine X's fingerprint does not match...connect anyway?") and will usually ask you for a password when connecting. That, however, is the extent of it. SSH is not involved in any other system tasks beyond making those inter-computer encrypted connections.

Last edited by Dark_Helmet; 01-16-2012 at 03:54 PM.
 
1 members found this post helpful.
  


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
[SOLVED] How to eject & close cdrom with command not manually by pressing button sumeet inani Linux - Newbie 2 06-22-2009 07:29 AM
SSH 'attack'. How to avoid? fst495 Linux - Security 27 11-26-2008 12:26 PM
what is the command being called when pressing ctrl-shift-tab on gnome-terminal odysseus.lost Linux - Desktop 2 10-11-2006 11:49 AM
pressing 'x' in gnome terminal starts new terminal instance Drwfan54 Ubuntu 3 09-26-2006 04:09 PM
How to schedule tasks in Terminal irfanhab Linux - General 1 08-28-2004 02:06 AM

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

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