Copy/Paste in Shell

Status
Not open for further replies.

OCMaximus

Dabbler
Joined
Apr 20, 2013
Messages
27
Hello,

I've been trying to paste some script into the shell and have not found how to do it. Copy paste does not seem to work in Chrome or Firefox. I'm currently using FreeNAS-8.3.0-RELEASE-p1-x64 (r12825).

Any help would be appreciated.

Thanks,
OCM
 

OCMaximus

Dabbler
Joined
Apr 20, 2013
Messages
27
Thanks.

Now I need to find a how to...
 

HolyK

Ninja Turtle
Moderator
Joined
May 26, 2011
Messages
654
Enable SSH, use Putty ^^

And read documentation :cool:
 

OCMaximus

Dabbler
Joined
Apr 20, 2013
Messages
27
Thank you.

I've read that and still makes no sense to me. I don't even know what Putty is. :eek:

Anywho. I am determined to figure this out. I've gone this far, not time to give up quite yet.

I'm trying to Setup SMART Reporting via email. and still haven't figured out how to work in SSH to make it all work.
 

OCMaximus

Dabbler
Joined
Apr 20, 2013
Messages
27
Hope I'm on the right track. I'm a little stuck.:mad:

 

OCMaximus

Dabbler
Joined
Apr 20, 2013
Messages
27
OK, I've gotten this far and now I'm stuck. Not taking my password I have set for Root.....

Untitled_zps41143aa7.png
 

jgreco

Resident Grinch
Joined
May 29, 2011
Messages
18,680
Services->SSH->Log in as Root with Password

isn't set, is it.
 

OCMaximus

Dabbler
Joined
Apr 20, 2013
Messages
27
Services->SSH->Log in as Root with Password

isn't set, is it.
No, that box is unchecked

- - - Updated - - -

And, you are trying to login as "root/su". Just type: root

Tried root and root/su and no go. Seems like I need a password. I'm using the password I have set for root.

I've even changed the root password, shut down system, restarted system, tried to log in putty with the new password and its still a no go.

Thats login as root and root/su
 

OCMaximus

Dabbler
Joined
Apr 20, 2013
Messages
27
Box checked and clicked OK. Logged in as root and still access denied. Now I feel super computer retarded.

Untitled_zpsb48327ef.png
 

gpsguy

Active Member
Joined
Jan 22, 2012
Messages
4,472
Try stopping the SSH service and then restart it. Or, restart the server.

btw, if you don't have a recent backup of the config file, I'd save one, just in case things go awry while you are modifying files on the flash drive.
 

OCMaximus

Dabbler
Joined
Apr 20, 2013
Messages
27
Still a no go. I did notice something odd. I'm getting the same error of (check /var/run/sshd.pid) when trying to start sshd. Just like my SMARTD test are not running every 30 min. Here is the thread for that. I wonder if it has anything to do with it.

Apr 20 17:55:00 freenas notifier: Stopping sshd.
Apr 20 17:55:00 freenas notifier: Will not 'restart' sshd because sshd_enable is NO.
Apr 20 17:55:29 freenas notifier: sshd not running? (check /var/run/sshd.pid).
Apr 20 17:55:29 freenas notifier: sshd not running? (check /var/run/sshd.pid).
Apr 20 17:55:29 freenas notifier: Starting sshd.
 

gpsguy

Active Member
Joined
Jan 22, 2012
Messages
4,472
Try restarting the server and toggling the SSH service off, then on.

That was the fix in the last message in this thread: sshd_enable-is-NO
 

OCMaximus

Dabbler
Joined
Apr 20, 2013
Messages
27
Set Root password as: freenas

Shutdown NAS box

Restarted NAS box

Toggled SSH off then on

Opened PuTTY (Release 0.62) and typed in IP address

Logged in as Root

Putty asked me: root@192.168.1.4's password:

I type in: freenas

I get: Access denied (you idiot computer illiterate moron :mad:)

I start banging on keyboard :mad: then walk away for a few minutes.......

Then come back and ask for more help :)
 

gpsguy

Active Member
Joined
Jan 22, 2012
Messages
4,472
freenas is the default password for the admin user. Did you assign a password for the root user? If not, add a password for root.

admin and root are different accounts.
 

OCMaximus

Dabbler
Joined
Apr 20, 2013
Messages
27
freenas is the default password for the admin user. Did you assign a password for the root user? If not, add a password for root.

admin and root are different accounts.

Root password was set to 'freenas'

Untitled_zps7cdf1afe.png


I've got to be missing something simple.......
 
Status
Not open for further replies.
Top