Cant save or exit in nano while in Jail shell

Status
Not open for further replies.

biggyk

Contributor
Joined
Nov 25, 2015
Messages
138
Iv only been using FreeNas 9.3 stable for a week learning and testing some things. Right now im working on getting SSH enabled in a jail but while using nano for a config file. I cannot save or exit nano. If I ctrl W, chrome completely closes and ctrl X doesnt do anything. So im stuck at this step.

I also tried in IE but also same thing.
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,525
CTRL+W closes the current window.

In short, you shouldn't be using the WebGUI shell for more than the most basic things. Editing files is more than "basic" IMO. Use Putty.
 

biggyk

Contributor
Joined
Nov 25, 2015
Messages
138
my apologies but is ssh enabled right out of the box? I was actually just trying to install it and configure it so then I can use putty from now on.
 

solarisguy

Guru
Joined
Apr 4, 2014
Messages
1,125
Use system console or SSH into FreeNAS (enable and configure SSH first = easy for someone who knows how to use nano), then enter your jail.

A couple of remarks:
  • To write out in nano, please use CTRL-O
  • CTRL-W is being interpreted as closing of your current browser window only by some browsers, so doing that when using (for example) Firefox or Seamonkey might be a solution for you (if you need CTRL-W :D)
 

biggyk

Contributor
Joined
Nov 25, 2015
Messages
138
I would say im a total noob. Im just trying to learn as I go. I know a little about ssh but not how to "enter" my jail.
 

depasseg

FreeNAS Replicant
Joined
Sep 16, 2014
Messages
2,874
my apologies but is ssh enabled right out of the box? I was actually just trying to install it and configure it so then I can use putty from now on.
Just enable the SSH service:
upload_2015-12-1_20-46-15.png
 

biggyk

Contributor
Joined
Nov 25, 2015
Messages
138
Just remembered that a few mins ago lol Thank you. Im getting the hang of it.
 

Ericloewe

Server Wrangler
Moderator
Joined
Feb 15, 2014
Messages
20,194
Use system console or SSH into FreeNAS (enable and configure SSH first = easy for someone who knows how to use nano), then enter your jail.

A couple of remarks:
  • To write out in nano, please use CTRL-O
  • CTRL-W is being interpreted as closing of your current browser window only by some browsers, so doing that when using (for example) Firefox or Seamonkey might be a solution for you (if you need CTRL-W :D)
CTRL-W is "close tab" in Firefox, IE and Edge, and possibly others.
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
You don't need to enable SSH in your jail. Just enable SSH for your FreeNAS server, and connect using SSH. Then type 'jls', and you'll get a list of your jails. Note the JID (the number) of the jail you want. Type 'jexec (the number) tcsh', and you'll be inside that jail. You can then do whatever you need inside the jail.
 

solarisguy

Guru
Joined
Apr 4, 2014
Messages
1,125
CTRL-W is "close tab" in Firefox, IE and Edge, and possibly others.
That is of course true, thank you for correcting me. My statement should read that in Firefox and Seamonkey CTRL-W would be passed to the Shell and the tab would not be closed
 
Status
Not open for further replies.
Top